Welcome to WebmasterWorld Guest from 54.159.2.45

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Quick Way to Deactivate An Entire Blog?

     

Planet13

8:12 pm on Apr 25, 2012 (gmt 0)

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



Hi there, Everyone:

Instead of going in and deleting every post / category / page, is there a quick way to deactivate a wordpress blog in one click?

Thanks in advance.

creeking

9:13 pm on Apr 25, 2012 (gmt 0)

5+ Year Member



hosted in your own webspace, or on a free blog site?



can you password protect it?

rocknbil

3:53 pm on Apr 26, 2012 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Huh. I thought for sure there would be a setting for this, doesn't look like there is.

Play around with an .htaccess rule. Create a "disabled" web page and

ReWriteEngine On

RewriteRule ^blog.* /blog-disabled.html [L]

If you still need to get to admin,

RewriteCond %{REQUEST_URI} !wp\-admin
RewriteRule ^blog.* /blog-disabled.html [L]

You may want to consider search engine requests with a temporary redirect header

RewriteCond %{REQUEST_URI} !wp\-admin
RewriteRule ^blog.* /blog-disabled.html [R=307,L]

The requested resource resides temporarily under a different URI. Since the redirection MAY be altered on occasion, the client SHOULD continue to use the Request-URI for future requests.


The above are not working, copy and paste mod_rewrite rules and they are typed on the fly. The are intended as ideas for using mod_rewrite for a simple way to disable your blog.

lorax

1:56 pm on Apr 27, 2012 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



There is a plugin (name escapes me but it should be easy to find) that will allow you to post a temp top page (all requests from non-admin users will be directed to this page).

Or did you mean remove instead of disable?

Planet13

7:17 pm on Apr 27, 2012 (gmt 0)

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



Thanks everyone:

I do mean disable (as opposed to remove).

It appears there might be a few different ways to do this. so I will look through them.

Thanks again, everyone.

hal12b

8:55 pm on May 4, 2012 (gmt 0)

5+ Year Member



If you host it.... move all files to a folder.... put a new index.php file up with "Under construction or whatever on it...

or just a redirect on top of the first php file the site loads.

I haven't used wordpress in a while.. these are random thoughts.

rocknbil

4:08 pm on May 7, 2012 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The only problem with that is all the sub-pages in the blog/WP site will 404, see 307 above.

bunltd

6:03 pm on May 7, 2012 (gmt 0)

10+ Year Member



Maintenance Mode Plugin [wordpress.org...]