Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#4 2009-01-01 09:35:13

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#6 2009-01-02 00:15:59

keith
Member
From: Blyth, Northumberland, England
Registered: 2004-12-08
Posts: 199
Website

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

Board footer

Powered by FluxBB