作爲http://website.com/sub/index.html這樣一個子目錄都有自己的.htaccess還是出於某種原因顯示404頁我有WordPress的是上面這個目錄中的子目錄。對於子DIRWordPress的404頁顯示上有它自己的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的情況下,被監察您的疑惑。
編輯:RewriteRule . /index.php [L]
前
完成投入RewriteCond %{REQUEST_URI} !^/?sub/
錯誤似乎仍然存在。
你見過這樣的職位? http://stackoverflow.com/questions/2322559/htaccess-wordpress-exclude-folder-from-rewriterule 希望它能幫助! – jmlv21104 2013-01-15 16:23:13