Knowledge Base Article

How to exclude a folder from Wordpress permalinks?

The default WordPress rewrite rules for permalinks might not work in some cases. For example, when you have other settings defined in .htaccess files located in subfolders.


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 On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress


to

RewriteRule ./ /index.php [L]

 



Rating

Please indicate if this article was helpful for you.

rating :  4.6 from 5
views :  999
votes :  9

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!