[resolved] Temporarily suspend a blog? (7 posts)

  1. decarn
    Posted 4 years ago #


    I intend to set up an exact mirror of my current site but using another domain name. The intention is to test on the mirror site first when there are new updates before I make the changes to the actual site. After which I will suspend the mirror site until the next update.

    How can I suspend the mirror site until future updates?

    *I would prefer not to use any plugins.
    *I would prefer not to suspend the entire account in WHM as I may have other sub-domains.


  2. Sabinou
    Posted 4 years ago #

    A very dirty solution could be to move ALL the blog files into a subfolder, and move them back to the root folder of your domain when you want to use your blog again.
    By SSH, mv * subdir , and when you want to use your blog again, by ssh, mv subdir/* ./
    And have either subdir to he a hidden directory, or have htaccess rule state that the index of the folder isn't shown to visitors.

    If you can't do SSH operations or you're unfamiliar with it, however, then I don't know how to do it, sorry.

    I'm certain there are sexier and better solutions, but my trick would require 30 seconds of work to hide or un-hide a blog, assuming you're familiar with ssh and command-line operations :)

  3. Big Bagel
    Posted 4 years ago #

    You could just rename index.php in your root WordPress folder to something else (index.bak for example). When you need access again, just change it back.

    You could also put an index.html file in your root. Apache normally serves index.html before index.php. However, if your server is setup to send index.php first, you would have to add this to your .htaccess:

    DirectoryIndex index.html index.php

    WordPress also has a built-in maintenance mode:


  4. Sabinou
    Posted 4 years ago #

    Damn, I wish I knew it before, Big Bagel ! Thanks, finally that thread was also useful for me :)

  5. decarn
    Posted 4 years ago #

    Thanks guys, you have been very helpful.

    If I were to rename my index.php or use the built in maintenance mode, will the search engine still crawl through the contents of my suspended site?

  6. Big Bagel
    Posted 4 years ago #

    No, spiders have to find a link to the site first, then the page has to actually exist (It won't publicly exist if you do any of the previously mentioned things). If you're really worried about it you can set the appropriate option in Settings > Privacy.

  7. decarn
    Posted 4 years ago #

    Thank Bagel. :)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.