LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Quick redirect

Reply
 
Thread Tools Display Modes
  #1  
Old 06-15-2009, 07:50 PM
alex alex is offline
Senior Member
 
Join Date: Jan 2006
Posts: 51
Default 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?
Reply With Quote
  #2  
Old 06-15-2009, 08:37 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
How the web site being configured? through httpd.conf? or natively via LSWS console?
Reply With Quote
  #3  
Old 06-15-2009, 08:42 PM
alex alex is offline
Senior Member
 
Join Date: Jan 2006
Posts: 51
through the LSWS console
Reply With Quote
  #4  
Old 06-15-2009, 09:14 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #5  
Old 06-15-2009, 09:35 PM
alex alex is offline
Senior Member
 
Join Date: Jan 2006
Posts: 51
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?
Reply With Quote
  #6  
Old 06-16-2009, 02:34 AM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
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.
Reply With Quote
  #7  
Old 06-16-2009, 07:13 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by alex View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:00 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.