View Full Version : Quick redirect
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
06-15-2009, 09:37 PM
How the web site being configured? through httpd.conf? or natively via LSWS console?
mistwang
06-15-2009, 10:14 PM
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.
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
06-16-2009, 03:34 AM
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
06-16-2009, 08:13 AM
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.