Support » Fixing WordPress » Moving newly designed WPsite from subdomain to root.

  • I have just built a new WordPress site in a subdomain of my original site (not in WP). I am now ready to replace the original. The Codex WP notes don’t seem to make it very clear .. it says “If you want to move WordPress to your root directory, make sure all index.php, .htaccess, and other files that might be copied over are backed up and/or moved, and that the root directory is ready for the new WordPress files.” Got scared at this point :). Any advice please?

Viewing 7 replies - 1 through 7 (of 7 total)
  • I suggest you try using the instructions in Giving WordPress Its Own Directory instead. It’s much easier.

    Thanks Esmi. I’ll take a look at that first then.

    Oh – hang on! Was this a sub-folder install or a sub-domain install?

    I’ve just looked at setting up WordPress in a sub directory. Will I have problems as the newsite needs to ‘overwrite’ the old site?

    The newsite is in a subdomain eg

    If you remove the sub-domain and change the url in WordPress to (see Changing_The_Site_URL for details of how to do this correctly), does the site still work OK?

    Success! Just for others to know it was done like this:

    Firstly install the “Velvet Blues Update URLs” plugin as recommended (fixes outdated links after a move)into the subdomain. Then ..

    (1) log into the current installation and change the URLs to the new location
    (2) download all of the files from the subdomain
    (3) upload all of the files to the new location in the root
    (4) log in at the new location and admire your success
    I’ve now got to delete all the old site pages so the search egines won’t continue to index them and send people to the wrong pages.

    I must say that it was much simpler than the WordPress Codex advice pages initially implied.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Moving newly designed WPsite from subdomain to root.’ is closed to new replies.