Forums

[resolved] moving installation to a new directory (3 posts)

  1. nunovo
    Member
    Posted 2 years ago #

    I have been testing a WordPress installation in a subdirectory, but now want to run it from my root directory.

    Do I need to do a new install, or can I just change a few pointers?

  2. MichaelH
    moderator
    Posted 2 years ago #

    Assuming wordpress is in folder called 'wordpress'

    Delete the /wordpress from the end of your Blog Address (URL) in Options->General.

    Put this index.php in your web-root folder

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

    This particular setup is described at: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  3. nunovo
    Member
    Posted 2 years ago #

    Thanks for that. It worked very sweetly.

Topic Closed

This topic has been closed to new replies.

About this Topic