• I’ve got an installation of WordPress on one domain. I want to switch domains. Hosting account will be the same, as will be the DB. Can I just move the files, and possibly change a config file or something? Is there more to it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • if db is the same, you simply need to change the 2 urls
    dashboard – settings
    then wait for new domain name to propagate

    why will you need to move files if same hosting?

    the easiest way I have found to do this would be to:

    1 ) copy the entire contents of domain1 to domain2 on your hosting platform.

    2 ) log into phpmyadmin if you have it and make a copy of your database. Then do a search for domain.com replacing all instances of domain1 with domain2* (this can be painstaking, and though samboll is correct, that the only two that have to be changed are the home and url, not changing them all can lead to issues)

    3 ) edit your wp-config.php file to reflect domain2*, not domain1 if there are references.
    ‘NOTE: * be sure to leave any trailing slashes in tact.’

    rfair404,

    I am following your instructions (thank you for posting!) and have a question:

    In 2), where do I do this search and replace? In a text file of the database export?

    Thanks. ??

    Rachel

    I export the database on my computer and open with editor Notepad++ and search and replace old domain name with new one save the file and import back in PhpMyadmin

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing domain name / same hosting account / same DB’ is closed to new replies.