我在Word preSS这个.htaccess文件。它位于/的public_html /(Web根目录)。我需要排除重写引擎文件夹(csNewsAd)。我想这一点,基于相似的在这里SO另一个问题,但并没有在所有的工作。
I have this .htaccess file in Wordpress. It's located at /public_html/ (web root). I need to exclude a folder (csNewsAd) from the rewrite engine. I've tried this, based from another question similar here at SO, but didn't work at all.
AddHandler x-httpd-php5 .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^/csNewsAd($|/) - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
有什么建议?
还有在另一个的.htaccess / csNewsAd密码保护:
There's another .htaccess inside /csNewsAd for password protection:
AuthName "Clasificados"
AuthType "basic"
AuthUserFile /home/ig000192/public_html/csNewsAd/.passwd
Require valid-user
而不是
RewriteRule ^/csNewsAd($|/) - [L]
(Source)