.htaccess & WordPress: Exclude folder from RewriteRule .htaccess & WordPress: Exclude folder from RewriteRule wordpress wordpress

.htaccess & WordPress: Exclude folder from RewriteRule


RewriteCond %{REQUEST_URI} !^/(csNewsAd|csNewsAd/.*)$ 

instead of

RewriteRule ^/csNewsAd($|/) - [L] 


Place the line below in the .htaccess file in the root.

ErrorDocument 401 default

Had the exact same problem and this worked for me.It is not the problem that the redirects don't work. The problem is that the 401 (Authorization Required) error is nog defined so the "popup" doesn't show.


Was having the same issue and found the answer to my problem here:http://kb.siteground.com/article/How_to_exclude_a_folder_from_Wordpress_permalinks.html

--From the site

To exclude the subfolders from the WordPress rewrite rules, you need to edit the .htaccess file and change the bold line below:

# BEGIN WordPress<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d# RewriteRule . /index.php [L] # Original lineRewriteRule ./ /index.php [L] # New line</IfModule># END WordPress