Quick redirect

alex

Well-Known Member
#1
Is there an easy way to do a quick redirect of the entire site to a web page, for maintanence for example or do I have to play with the .htaccess file
on each server?
 

mistwang

LiteSpeed Staff
#4
There are a few options.
first, create a vhost show only the maintanence page.

then, you can either update the listener->vhost mapping to show the maintanence vhost.

or add a redirect context to direct to the dedicate maintanence page. you need to assign a sub-domain for that vhost.
 

alex

Well-Known Member
#5
I have tried the first method, the problem is it only works for the index page, if someone has an existing link or comes from a google search they get an error

Can you explain more on the second method?
 

auser

Super Moderator
#6
there is a simple way to do this, FYI:

assume your document root /public_html
rename to /public_html.bak

recreate /public_html

put only maintain.html under the new root. and configure the 404 error page pointing to it.
 

mistwang

LiteSpeed Staff
#7
I have tried the first method, the problem is it only works for the index page, if someone has an existing link or comes from a google search they get an error

Can you explain more on the second method?
You can add a matching context to match everything to that page.
 
Top