Forum Moderators: phranque

Message Too Old, No Replies

Site wide redirect to a single page

Easy to set up?

         

trillianjedi

3:54 pm on Dec 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I need some help ;-)

I have to run some maintenance against a fairly complex database and while I do this I need to take the site offline.

I want to redirect absolutely everything on www.domain.com to www.domain.com/offline.html temporarily.

offline.html will just be a simple "We're upgrading, back in 5 mins" type page.

A 302 is my ticket here. I did my usual google of WW but couldn't find the code, and I need something to copy/paste as my .htaccess skills are rudimentary at best!

I think we're looking at something like:-

Redirect temp / htt*p://www.domain.com/offline.html

Many thanks for any guidance.

TJ

jdMorgan

2:18 am on Dec 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd prefer

RedirectMatch 302 ^/ http://www.domain.com/offline.html

Jim

trillianjedi

12:06 pm on Dec 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Many thanks Jim!

TJ