We Recommend

HTML: The Definitive Guide HTML: The Definitive Guide
They teach you that learning HTML is like learning any other language and that reading a book of rules can only take you so far. Readers begin writing what may be their first Web page just two pages into the book's second chapter. From there on, they provide a wide range of HTML coding to allow readers to learn from good examples. The book includes a handy "cheat sheet" of HTML codes for quick reference.


Posted By

tylerhall on 07/11/06


Tagged

modrewrite htaccess apache


Versions (?)


Who likes this?

4 people have marked this snippet as a favorite

meth
rolandog
simpeligent
vvarp


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 

You need to login to post a comment.