WordPress.org

Ready to get started?Download WordPress

Forums

Migration from subdirectory to root (1 post)

  1. himynameisvan
    Member
    Posted 6 months ago #

    I recently followed the directions here on how to migrate a WordPress site from a subdirectory to the root directory of my site. I've done it successfully before, but for some reason things didn't work this time around and I would love any insight into how I can salvage is at this point!

    Basically I wanted to move:
    http://www.jenbtv.com/jenbtv2013/
    to
    http://www.jenbtv.com/

    I followed all the steps precisely EXCEPT that I accidentally made the WordPress address and the site address the same (e.g. http://www.jenbtv.com/) instead of pointing the WordPress address to the original subdirectory. However, I rectified that afterwards by putting this code into my functions.php, which is reflected in the database:

    update_option('siteurl','http://www.jenbtv.com');
    update_option('home','http://www.jenbtv.com/jenbtv2013');

    If you look at http://www.jenbtv.com/, you will see that all of the files and images are missing the /jenbtv2013 path, and just acting as though all the files exist in the root instead. Does anybody know how to fix this?

Reply

You must log in to post.

About this Topic