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 .* http://www.extocapital.com/$0 [R=301,L]

Initial URL
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

Initial Description
Make file not found redirect to new host.

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

Initial Tags
htaccess

Initial Language
Apache