WordPress .htaccess Exclude folder from RewriteRule

To exclude a folder from the wordpress rewrite in .htaccess, add the following line before the other RewriteConds, replacing somedir with your folder name:

RewriteCond %{REQUEST_URI} !^/(somedir|somedir/.*)$

Tagged with: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*