Search the articles in our knowledge base!

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]

WordPress is a powerful software that is easy to work with once you have the right host to support you. Before you lose any more time with the wrong host, check out SiteGround WordPress hosting offer.
VN:F [1.9.22_1171]
Rating: 4.4/5 (7 votes cast)
How to exclude a folder from WordPress permalinks?, Rating 4.4 out of 5 based on 7 votes