Moving wordpress from a subdirectory to a subdomain (both at dreamhost)

wordpress

#1

I own the domain zenite.nu hosted at Dreamhost. There are two Wordpress installations on it, one at the root and other in a subdirectory (zenite.nu/orbita). With time, ‘orbita’ became a huge site, with a content relatively different from the root site. So I decide to move the Wordpress at ‘orbita’ folder to a subdomain orbita.zenite.nu (not created yet).

I would like, if possible, a guide to do this. It is not necessary to be very thorough, because I have a reasonable understanding of this stuff.

I am asking the steps I have to do to accomplish this task inside Dreamhost admin panel - just to be sure that I will not forget anything important!

Thank you very much,
Costa.


#2

I’ve moved small installations with the All-in-One WP Migration plugin.


#3

I’d leave the files where they are, create a subdomain pointing to the /orbita directory and adjust the database by:

  • creating a dump file
  • open it with Notepad ++ or another text editor of your choice
  • replace all occurrences of ‘http://zenite.nu/orbita’ with ‘http://orbita.zenite.nu
  • import the modified db dump to your database, overwriting the old one
    or
  • create a new db, import the dump there and adjust the settings in wp-config.php

That should be it. Just don’t forget to keep a backup of your files and database in case something goes wrong.
Also, depending on your plugins/customizations, maybe you have API keys or other stuff that needs to be changed with the new domain.


#4

Hi Jrvcosta,

Do you still need help with this? If so, just let us know.

In the meantime here is some info on changing the URL of a WordPress site:

Thanks!