Redirecting every page on the website to index.html
admin | Sep 11, 2009 | Comments 1
Issue :
While some construction is going on the site, all pages on the website should go to the index page.
Solution :
This can be easily achieved by using the following code in your .htaccess file :
< IfModule mod_rewrite.c >
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
< /IfModule >
Filed Under: Quick fixes • Technical
About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

1800 810 6547
[...] This post was Twitted by InstaCarma [...]