Knowledge Base
MilesWeb / WordPress FAQ

How Do I Exclude A Folder From WordPress Permalinks?

Approx. read time : 2 min

The standard WordPress rewrite rules for permalinks might not work in some cases. For examples, when you have defined other settings in the .htaccess files present in the subfolders.

In order to exclude the subfolder from the WordPress rewrite rules, you will have to edit the .htaccess file and change the line mentioned 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 one of the most powerful content management systems to work with. You can get the best of benefits if you have the right web hosting platform to support you. Check out the WordPress hosting plans offered by MilesWeb, you can be assured that you will get the best! https://www.milesweb.co.uk/wordpress-hosting.php

Save

Need help? We’re always here for you.