Forums

Shutting Down WordPress Blog temporary (15 posts)

  1. Ksec
    Member
    Posted 6 years ago #

    I am wondering if there is any blog in that can shutdown the blog temporary apart from the admin. To give the site a huge update... or what so ever.

    When ever a user access the blog ( no matter which page ) it will comes out with a title saying it is going through bahbahhhh.......

    Or can this be done via other method?

  2. James
    Happiness Engineer
    Posted 6 years ago #

    I believe there was a plugin for v1.2.x, but it was never updated for v1.5.x. The only solution that I'm aware of is to temporarily password protect the blog directory with .htaccess. See: http://www.javascriptkit.com/howto/htaccess3.shtml

  3. emt036
    Member
    Posted 6 years ago #

    You could also put up an index.html in your blog root explaining that the site is down for maintainence.. On most servers this takes precendece over index.php, so your visitors would see the html page. (Though if they manually typed in index.php, it would still work.)

  4. Ksec
    Member
    Posted 6 years ago #

    it world work yes..... if they came from google / to a sepefic page, than the index.html method wont work.

    Where can i find this 1.2.x plug in?

  5. emt036
    Member
    Posted 6 years ago #

    True... you could use .htaccess to redirect everything to index.html, but that would be a pain.

  6. oriecat
    Member
    Posted 6 years ago #

    Interesting question. Invision boards have a feature that does this. I wonder if it would be possible to tear into how it works and try to apply it here somehow.

  7. Ksec
    Member
    Posted 6 years ago #

    I think most BB Board have this function, so it can take down the whole site while the sites is doing a upgrade / backup makeover etc.

    I know this only happen in big sites. And for us small blogger it isn't really useful. But somtime you may want to present something that is woth just doing that.

    I think a plug in like that would be useful. Anyone?

  8. Ryan Boren
    WordPress Dev
    Posted 6 years ago #

    Create a maintenance theme with an index.php that says the blog is closed for maintenance. All links into your blog will show this page. As long as WP is still in running condition during your maintenance, switching to your maintenance theme will put all visitors on notice without breaking any links. If WP itself is down during maintenance, neither this method nor a plugin will be helpful.

  9. cron
    Member
    Posted 6 years ago #

    Or you could use the "meta-refresh" comand in your header.php to redirect everyone to a html page. It seems eaisyest doing it that way....

    Cron - Symmetry In My Mind

  10. Kafkaesqui
    Moderator
    Posted 6 years ago #

    Or replace the index.php in your blog's root with a document that's not WordPress aware. Good for WP-related down time, and again, easy.

  11. hooopla
    Member
    Posted 6 years ago #

    Or replace the index.php in your blog's root with a document that's not WordPress aware.

    What do you mean by "not WP aware?"

  12. angsuman
    Member
    Posted 6 years ago #

    I have a simple plugin for it. I will publish it probably today.

  13. Kafkaesqui
    Moderator
    Posted 6 years ago #

    "What do you mean by "not WP aware?""

    It doesn't load wp-blog-header.php.

  14. davidchait
    Member
    Posted 6 years ago #

    This is a really easy hack... well, if you aren't already using a caching 'plugin' like WP-Cache.

    1. Create a php file in wp-content called advanced-cache.php.
    2. In advanced-cache.php, do whatever you want to do followed by an 'exit();', or simply do a 'die("Site is down for an overhaul.");'.
    3. To 'turn off' the site, you add one line to the top of your wp-config.php:
    define('WP_CACHE', 'hack');

    All done. When you want to re-enable the site, comment that define out. When you want to disable the site, uncomment that define line.

    -d
    CHAITGEAR

  15. angsuman
    Member
    Posted 6 years ago #

    You can try this plugin:

    WordPress Plugin to Make your Blog Temporarily Unavailable for Maintenance.

    On activating your site will become unavailable to the world. On deactivating your site will be available again.

    No hack or code changes required. In other words zero-configuration.

    Let me know if that helps.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.