HOW TO: Configure WordPress to work with a new domain

Last modified: April 13, 2020
You are here:
Estimated reading time: 1 min

If you want to use WordPress on a new domain, simply change the siteurl and home options in our WordPress Dashboard or via FTP.

Using the WordPress Dashboard

To do this go to Settings > General and replace your WordPress Address and Site Address with your new domain name.

General and replace your WordPress Address and Site Address with your new domain name.
General and replace your WordPress Address and Site Address with your new domain name.


  • The “Site Address (URL)” setting is the address you want people to type in their browser to reach your WordPress blog.
  • The “WordPress Address (URL)” setting is the address where your WordPress core files reside.


If you have FTP access to the site, then these methods will help you quickly get a site back up and running if you changed those values incorrectly in the Dashboard.


It is possible to set the site URL manually in the wp-config.php file.

Add these two lines to your wp-config.php, where “” is the correct location of your site.



WP-change-domain-Edit wp-config.php
Edit wp-config.php

This is not necessarily the best fix, it’s just hardcoding the values into the site itself. You won’t be able to edit them on the general settings page anymore when using this method.

Edit functions.php

  1. Download a copy of the active theme’s functions.php file. You’re going to edit it in a simple text editor and upload it back to the site.
  2. Add these two lines to the file, immediately after the initial “ update_option( ‘home’, ‘’ );
    *Use your own URL instead of, obviously.

    WP-change-domain-Edit functions.php
    Edit functions.php


  3. Upload the file back to your site, in the same location.
  4. Load a few times the login or admin page. The site is supposed to return.
Was this article helpful?
Dislike 0
Views: 31
Customer Services Contact

Need Help? Send a Ticket to our 24X7 Technical Support Team

Subscribe Newsletter

Subscribe to Casbay Newsletter for online tips, events and latest promotion !

Copyright © 2010 – 2020 Casbay Sdn. Bhd. (1042688-D). All Rights Reserved.

All Trademarks Are The Property of Their Respective Owner.