Forum Moderators: phranque

Message Too Old, No Replies

Redirect entire site to one page

         

georgiek50

1:07 pm on Nov 16, 2005 (gmt 0)

10+ Year Member



My one of my major sites went completely down a couple of days ago (lost about 2 yrs of work!) and now it is time to rebuild.

In the meantime, i need to redirect every single page/external link on the site to the main index.html file while I get set up again.

Is there a quick way to do this via .htaccess?

Thanks in adance.

jdMorgan

1:56 pm on Nov 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd suggest you use a simple 302 (Moved Temporarily) redirect:

RedirectMatch 302 ^/.+$ http://www.example.com/

Notice that if you leave this in place for more than a few days, it may cause serious problems with your search engine rankings. It is meant to be temporary, as defined. After more than a few days, you might actually be better off letting the as-yet-unrestored pages return a 404-Not Found.

Jim

georgiek50

3:44 pm on Nov 16, 2005 (gmt 0)

10+ Year Member



Thanks for that...not too worried about SE ranks anymore...over 600 pages got wiped out from this HD failure and my backup was faulty! Two years of work down the tube (weeping...)...but life goes on!