homepage Welcome to WebmasterWorld Guest from 54.205.122.62
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

    
Quick Way to Deactivate An Entire Blog?
Planet13

WebmasterWorld Senior Member planet13 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4445582 posted 8:12 pm on Apr 25, 2012 (gmt 0)

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

5+ Year Member



 
Msg#: 4445582 posted 9:13 pm on Apr 25, 2012 (gmt 0)

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



can you password protect it?

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4445582 posted 3:53 pm on Apr 26, 2012 (gmt 0)

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

WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4445582 posted 1:56 pm on Apr 27, 2012 (gmt 0)

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

WebmasterWorld Senior Member planet13 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4445582 posted 7:17 pm on Apr 27, 2012 (gmt 0)

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

5+ Year Member



 
Msg#: 4445582 posted 8:55 pm on May 4, 2012 (gmt 0)

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

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4445582 posted 4:08 pm on May 7, 2012 (gmt 0)

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

bunltd

10+ Year Member



 
Msg#: 4445582 posted 6:03 pm on May 7, 2012 (gmt 0)

Maintenance Mode Plugin [wordpress.org...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved