/ Published in: Apache

Make file not found redirect to new host.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# 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]
URL: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
Comments
