Forum Moderators: phranque

Message Too Old, No Replies

redirect all to index.html for maintenance

         

webstyler

7:45 am on Nov 22, 2006 (gmt 0)

10+ Year Member



Hi, I need to redirect all request to index.html because site for when under maintenance.

In the hosting there are 4 domain pointed, so I must also redirect all to index.html BUT only if url is no [mysite.com...] (or loop)

thx

webstyler

7:55 am on Nov 22, 2006 (gmt 0)

10+ Year Member



solved

RewriteEngine on
RewriteRule . index.html

seems ok

:)

jdMorgan

3:47 pm on Nov 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a really, really bad idea if you care about your search engine rankings...

Instead of "closing" your site for maintenance or upgrade, consider setting up a second virtual site on a subdomain or in a subdirectory. Then you can use the second site for new development and testing, and when it is ready, rewrite all requests to the new-content subdirectory. Or just rename the development directory on the server, so that it becomes the "live" site.

This leaves the original site in place until you "throw the switch" and the change-over is instant.

Jim