Return to Snippet

Revision: 31487
at September 7, 2010 20:26 by pntruongphuc

Initial Code
# if images files not found will be redirect to our main server
RewriteCond %{REQUEST_URI} .?\.(gif|jpg|png|jpeg)
RewriteCond %{REQUEST_FILENAME} !-f
# Rewrite all other URLs to index.php/URL
RewriteRule .*$0 [R=301,L]

Initial URL

Initial Description
Make file not found redirect to new host.

Initial Title
Htaccess tips for redirect file not found to new host

Initial Tags

Initial Language