Excluding a specific folder from .htaccess rewrites

Here’s a useful .htaccess snippet if you need to exclude a folder from your .htaccess rewrite.

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/exclude-folder/.*$
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1

About Author:

Senior Cloud Software Engineer and 25+ years experienced video production, video editing and 3D animation services for a variety of global clients including local video production here in Jacksonville, Florida.

Leave a Comment

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