Web サーバーの public_html ディレクトリで WordPress を実行しています (つまり、アカウントのプライマリ ドメインがこのディレクトリを指しています)。このフォルダには、他の Web サイト用のサブディレクトリがあります (「subdomain.com」Web サイトの場合は /subdomain など)。サブディレクトリにあるこれらの Web サイトの一部は、FrontPage を使用して編集されています。
ルートの .htaccess ファイルを WP 用に構成すると、FrontPage のアクセス許可が台無しになり、FrontPage を使用できなくなることがわかりました (FrontPage は認証を求めず、404 エラーをスローします)。Web 検索から、他の人がこの問題に遭遇したことを発見しました (例: https://my.bluehost.com/cgi/help/375 ) が、他の人が提案した修正を実装することに成功していません。
詳細は次のとおりです。
この .htaccess ファイルがルートにある場合、FrontPage は正常に動作します。
# -FrontPage-
AuthUserFile /home/user/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/user/public_html/_vti_pvt/service.grp
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName myrootdomain.com
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
このルート .htaccess ファイルに WP セクションを入れたいので、次の .htaccess ファイルを最上位の public_html ディレクトリに配置しようとしました。
#-FrontPage-
AuthUserFile /home/user/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/user/public_html/_vti_pvt/service.grp
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName myrootdomain.com
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
RewriteRule ^subdir-name/.*$ - [PT]
ErrorDocument 404 /index.html
<files wp-config.php>
order allow,deny
deny from all
</files>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript application/xhtml+xml application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
Options -Indexes
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
ただし、WP コンポーネントを含む上記の .htaccess ファイルをインストールすると、FrontPage 認証が壊れます。
「subdomainN」(FrontPage で編集したドメイン) の _vti_bin ファイルの .htaccess ファイルは次のようになります。
# -FrontPage-
Options +FollowSymlinks
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName mydomain.com
AuthUserFile /home/user/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/user/public_html/_vti_pvt/service.grp
…そして、サブドメイン N の _vti_aut および _vti_adm サブディレクトリにある .htaccess ファイルは次のようになります。
# -FrontPage-
Options +FollowSymlinks
<Limit GET POST>
order deny,allow
deny from all
allow from all
require group authors administrators
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthType Passthrough
AuthName myrootdomain.com
AuthUserFile /home/user/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/user/public_html/_vti_pvt/service.grp
FrontPage 認証を機能させるために調整する必要があるものと、.htaccess ファイル内の WP コンポーネントに関する提案はありますか?