Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MOD re-write problem

Status
Not open for further replies.

3Y3

Programmer
Sep 18, 2001
45
CA
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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top