Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-01-01 01:49:33
- azw
- Member
- Registered: 2007-01-29
- Posts: 279
How to temporarily take down a website?
I need to take down a TXP site for a few weeks. It will go back up again (exactly like it was) after that period. In the meantime, I can only show one simple page.
I’m thinking the easiest way to do that would be to use .htaccess to redirect all page requests to that simple page. Does that make sense?
RewriteEngine on
# optionally exclude my own IP from being redirected
# RewriteCond %{REMOTE_ADDR} !^123\.45\.67\.89
RewriteCond %{REQUEST_URI} !/temporary-message\.html$
RewriteRule ^(.*)$ /temporary-message.html [R=503,L]
Last edited by azw (2009-01-01 01:50:36)
Offline
#2 2009-01-01 01:53:55
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How to temporarily take down a website?
By far the easiest way is rvm_maintenance :)
Offline
#3 2009-01-01 01:55:24
- azw
- Member
- Registered: 2007-01-29
- Posts: 279
Re: How to temporarily take down a website?
Whew, you’re fast, Els!
Thanks for taking care of that other post.
I’ll take a look at the plug in. That could be easy.
Offline
Re: How to temporarily take down a website?
There are 3 maintenance plugins – personally I use cbs_maintenance_mode, which is a modified version of rvm_maintenance.
Offline
#5 2009-01-01 19:19:51
- azw
- Member
- Registered: 2007-01-29
- Posts: 279
Re: How to temporarily take down a website?
Thanks for the tip, JStubbs!
Offline
Re: How to temporarily take down a website?
azw wrote:
Thanks for the tip, JStubbs!
- ..and Els*.
Keith
Blyth, Northumberland, England
Capture The Moment
Offline