Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  WordPress FAQ  >  How Do I Exclude A Folder From WordPress Permalinks?
Top Scroll

How Do I Exclude A Folder From WordPress Permalinks?

 2 min

The standard WordPress rewrite rules for permalinks might not work in some situations. For instance, they might not work if you have any other settings defined in .htaccess files present in the sub-folders.

In order to exclude the sub-folders from the WordPress rewrite rules, you must edit the .htaccess file and modify the line mentioned below in bold:

# 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]

This completes the process of excluding a folder from WordPress permalinks.

WordPress is an efficient software that is user-frinedly as well. If you have the right web hosting platform to support your website, you can create a powerful online presence. To get the best WordPress hosting platform, visit : https://www.milesweb.co.uk/hosting/wordpress-hosting

Save

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.