1. Home
  2. Knowledge Base
  3. Applications
  4. Wordpress
  5. How to exclude a folder from WordPress permalinks using .htaccess

How to exclude a folder from WordPress permalinks using .htaccess

To exclude the subfolders from the WordPress rewrite rules, you need to edit the .htaccess file and change the default .haccess code to below code

+++
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ./ /index.php [L]
</IfModule>
# END WordPress
+++

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support