• Resolved decarn

    (@decarn)


    Hi,

    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.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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 ??

    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:

    https://sivel.net/2009/06/wordpress-maintenance-mode-without-a-plugin/

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

    Thread Starter decarn

    (@decarn)

    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?

    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.

    Thread Starter decarn

    (@decarn)

    Thank Bagel. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Temporarily suspend a blog?’ is closed to new replies.