• I have a clients site that needs upgrading from 2.9.2 to 3.4.1 but I’m not sure if the upgrade is going to cause a bunch or errors. ( I did not create the original theme) The big concern is the shopping cart. Having the site down for trouble shooting will cost $$$

    I want to mirror the site on the root and intall the update on the mirror as a test. eg. mirror.mysite.com

    *The site can not be local because I need staff members to test out the cart and shipping elements.

    So far I have zipped the entire site and unzipped it inside the mirror subdomain. BUT when I launch the mirror site I get the standard WP

    “Making Things Better. Sorry! We are tinkering in the background and making improvements. We’ll be back momentarily.
    Thank you”

    Is there something I need to change in the config? Is there a better way to do this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • wpismypuppet

    (@wordpressismypuppet)

    Thread Starter franclin

    (@franclin)

    Thanks wpismypuppet but I can not use a local version of the site. It needs to be available for testing by several client members.

    wpismypuppet

    (@wordpressismypuppet)

    The steps are exactly the same whether you make the site local, or live. In fact, in the documentation where it talks about intercepting wp_options table information, it specifies online references.

    For example, if your normal installation is https://my.web.zz/wordpress and your development one is https://my.web.zz/wordpress-dev you can do the following; the example assumes you want siteurl=home for simplicity.

    /* put this at the very start of get_option() in functions.php */
     if ($option == 'siteurl' || $option == 'home') {
        $currenturi = $_SERVER['REQUEST_URI'];
        $mypos = strpos($currenturi, 'wordpress-dev');  /* are we looking at dev site right now? */
        if ($mypos !== false)
           return 'https://my.web.zz/wordpress-dev';
     } /* continue on with normal method, if we are not looking at dev site */

    As well, be sure to update .htaccess in your development version.

    Don’t use localhost, use a sub domain of your current site, dev.mysite.com or a sub folder, https://www.mysite.com/dev. This information works for both local and non-local development testing.

    Thread Starter franclin

    (@franclin)

    Brilliant! Thank you so much. I had read that article several time and not realized that it could be used externally as well.

    Thanks you.

    wpismypuppet

    (@wordpressismypuppet)

    You are welcome

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mirror site on same server for quick test’ is closed to new replies.