独自の .htaccess を持つhttp://website.com/sub/index.htmlなどのサブディレクトリでは、何らかの理由で、このディレクトリの上のディレクトリにある Wordpress 用の 404 ページが表示されます。
サブディレクトリの .htaccess:
ErrorDocument 404 /404.html
メイン ディレクトリの .htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^website.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.website.net$
RewriteRule ^foghelper.php$ http://website.net/subdirone/ [R=301,L]
RewriteRule ^foghelper.php$ http://website.net/subdirtwo/ [R=301,L]
# DO NOT REMOVE THIS LINE AND THE LINES ABOVE jNLK5d:REDIRECTID
# 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
hta にあったリンクは検閲されています。
編集:
エラーがまだ存在しているように見えるRewriteCond %{REQUEST_URI} !^/?sub/
前に追加すると。RewriteRule . /index.php [L]