Forum Moderators: phranque

Message Too Old, No Replies

excluding a folder

a rewrite question

         

WhosAWhata

4:42 am on Aug 8, 2004 (gmt 0)

10+ Year Member



if i want to apply a rule to all files in a dir i just through the .htaccess file in there. it also rewrites all sub dirs and fles inside them. i want to apply the rule to every file except those files in the exclude/ dir

should this work?

RewriteEngine on
RewriteCond %{REQUEST_URI} !exclude/
RewriteRule whatever

i could just upload it and see, but you guys are much better at detecting things that can sneak by

jdMorgan

6:50 pm on Aug 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want to exclude all files in the folder "/exclude" and all files in all folders below "/exclude" then your code should work.

Jim