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!


  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:


      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.

  3. Reply February 24, 2017 / 00:36 Will OwenSiteGround Team

    When I go into phpMyAdmin, I do not see anywhere to select "wp_options" in the wp databse.

    • Reply February 24, 2017 / 12:25 Ivan AtanasovSiteGround Team

      It is likely that your WordPress database is using a different table prefix, not the wp_ one. Also, it is possible that your database has more than one page in the tables section. Meaning, the _options table can be on the second page.

* (Required)