Exclude a file or directory from any .htaccess rewrite rules

Posted by & filed under Server.

At the top of your access file, next line after RewriteEngine On:

RewriteRule ^(dir_name|file_name\.extension|and_so_on) - [L]

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Bitnami