WordPress.org

Support

Support » Themes and Templates » Carton » change URL from subdirectory to root

change URL from subdirectory to root

  • I have my site currently installed in a subdirectory:

    williamsiebold.com/blog

    The WordPress Address is http://williamsiebold.com/blog

    The Site Address is http://williamsiebold.com/blog

    I want to change the URL that visitors use to access the home page from http://williamsiebold.com/blog TO http://williamsiebold.com (ie the Site Address)

    Following the directions found in the codex (Using a pre-existing subdirectory install http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory) I see that I am supposed to move my index.php & .htaccess files to the root directory from the /blog subdirectory. Once done, it directs me to modify the index.php:

    “Edit your root directory’s index.php.
    Open your root directory’s index.php file in a text editor
    Change the line that says:
    require(‘./wp-blog-header.php’);
    to the following, using your directory name for the WordPress core files:
    require(‘./wordpress/wp-blog-header.php’);
    Save the file.”

    However I have not found the “require” action in the available index.php files – and I wonder if you have a better way for me to make this change. Seems like it should be easier (?)

    Thanks,

    Bill Siebold

  • The topic ‘change URL from subdirectory to root’ is closed to new replies.
Skip to toolbar