Forum Moderators: phranque

Message Too Old, No Replies

How to turn off rewrite for a folder

         

DKDiveDude

5:48 pm on May 11, 2004 (gmt 0)

10+ Year Member



I think I asked this questiona bit back, the wrong way.

In my website's root I have an .htaccess, that prevent blank referers and some other stuff.

Now I want to disable ALL that, for a particular folder. How do I do that?

Thanks

gergoe

6:12 pm on May 11, 2004 (gmt 0)

10+ Year Member



piece of cake; just turn off the rewriting engine (RewriteEngine off) in a .htaccess file in that directory.

jdMorgan

6:17 pm on May 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can add that folder as an exclusion to your existing rules using RewriteCond.

Alternately, you can add a new rule at the top of the mod_rewrite code in your root .htaccess:


RewriteRule ^my_folder/ - [L]

This says, "If any resource in the special folder is requested, leave the URL unchanged, and stop mod_rewrite processing."

Jim

DKDiveDude

6:17 pm on May 11, 2004 (gmt 0)

10+ Year Member



RewriteEngine off is exactly what I did, but nope did not work!

Then I tried to add this in my .htaccess in my root older:

RewriteCond %{REQUEST_URI}!^/Thumbs/

But nope that did not work either...

DKDiveDude

6:27 pm on May 11, 2004 (gmt 0)

10+ Year Member



Yikes, must have been a cache problem.

Works now, sorry...