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.

If you want a lightning-fast WordPress website, check out our free eBook WordPress Speed Optimization Ebook! In it you will find a variety of easy-to-follow tips to improve the speed of your site!

4 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 🙂

  2. Reply December 1, 2016 / 08:55 Derrick GordonSiteGround Team

    Hi, I am also having a problem connecting with wordpress. I have someone trying to set up my page for wordpress through my domain but is having some problems doing so, as far as things keep deleting, etc. Would you be able to help me?

    • Reply December 1, 2016 / 09:54 Ivan StefanovSiteGround Team

      Derrick, we will be glad to help you with this issue. Please submit a support ticket via your User Area -> Support tab -> Open a Support Ticket and provide us with a definition of the problem.

* (Required)