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 🙂

* (Required)