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

  1. brookie
    Posted 7 years ago #


    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?


  2. MichaelH
    Posted 7 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)

    /* Short and sweet */
    define('WP_USE_THEMES', true);

    Then update your permalinks in Settings->Permalinks.

Topic Closed

This topic has been closed to new replies.

About this Topic