Home » Apache

How to ignore a directory when using mod_rewrite

14 January 2010 4 Comments

The problem is the following… I’ve made a nice .htaccess file which takes care of my url. They look nice and friendly but the problem is that in a subdirectory I have a script or something that does not like URL rewriting and throws all kind of errors.

If you want to ignore that directory here are a few ideas:

RewriteRule ^foldertobeignored/.*$ - [PT] (placed in the root .htaccess file)

or

just put “mod_rewrite off” in a .htaccess file placed in the folder you want to ignore.

I am sure that there are many other ways to do it…

4 Comments »

Leave your response!

You must be logged in to post a comment.