WordPress.org

Ready to get started?Download WordPress

Forums

Install to build and test in a subdirectory but go live in root? (2 posts)

  1. brookie
    Member
    Posted 5 years ago #

    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.

  2. MichaelH
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic