How to configure WordPress to work with a new domain?

In case you wish to use your WordPress application with another domain, you should change the siteurl and home options in your WordPress database. You can do this using the phpMyAdmin tool available in your cPanel.

Once in phpMyAdmin, select your WordPress database and browse the table wp_options. Find the options siteurl and home and change their values to the new domain you wish to use.

WordPress is a powerful software that is easy to work with once you have the right host to support you. Before you lose any more time with the wrong host, check out the SiteGround WordPress hosting offer.

2 Comments

  1. Reply April 30, 2015 / 16:10 Dov ZellerSiteGround Team

    Having trouble setting up config in wordpress. I think I have all the info right.

    • Reply May 2, 2015 / 10:28 Hristo PandjarovSiteGround Team

      Try adding these lines to the functions.php file of your theme:

      update_option('siteurl','http://www.new-site-address.com');
      update_option('home','http://www.new-site-address.com');

      Once you do that, it's a good idea to regenerate your permalinks structure too :)

* (Required)