On my site I'm using TextPattern and it wants one mod rewrite rule to handle virtual directories (the last line), but there are some folders on my system that I don't want it to touch (mainly .htpasswd'd directories). How do I add a condition to my .htaccess so that it excludes specific folders?
I want to exclude
<<and their child folders but send anything in < etc...
to index.php
This is the .htaccess as it currently exists:
# DirectoryIndex index.php index.html
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
I want to exclude
<<and their child folders but send anything in < etc...
to index.php
This is the .htaccess as it currently exists:
# DirectoryIndex index.php index.html
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
</IfModule>