Posted By

tylerhall on 07/11/06


Tagged

modrewrite htaccess apache


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

meth
rolandog
simpeligent
vvarp
not_skeletor
leighli


mod_rewrite ignore rules if a matching file or directory exists


 / Published in: Other
 

Place these lines at the top of your .htaccess file to skip to existing files and directories if they exist. If not, proccess our other rules as usual.

  1. RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
  2. RewriteCond %{REQUEST_FILENAME} -d [NC]
  3. RewriteRule .* - [L]

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: TomCat on December 12, 2010

Very useful snippet, it was exactly what I was looking for. Thanks a lot!

You need to login to post a comment.