WordPress.org

Support

Support » Installation » Install to build and test in a subdirectory but go live in root?

Install to build and test in a subdirectory but go live in root?

  • Hi,

    I want to install WP in a subdirectory to build and test a site while the live static HTML works in the root directory.

    When the user is ready to go live I want to move the WordPress site over the static site in the root.

    What is the best way to do that?

    Thanks.

Viewing 1 replies (of 1 total)
  • Assumming you installed WordPress in a folder called blog–to make WordPress available at http://mydomain.com just change in Settings->General, the Blog address (URL) to http://mydomain.com and put this index.php file in your web-root folder (it is the same folder that contains the blog folder)

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./blog/wp-blog-header.php');
    ?>

    Then update your permalinks in Settings->Permalinks.

Viewing 1 replies (of 1 total)
  • The topic ‘Install to build and test in a subdirectory but go live in root?’ is closed to new replies.