One very important aspect of motivation is the willingness to stop and to look at things that no one else has bothered to look at. This simple process of focusing on things that are normally taken for granted is a powerful source of creativity. -Edward De Bono

Changing a WordPress Site URL

A simple 5 step process

  • Share it.

So you want to change your WordPress.org URL?

Changing your wordpress URL may seem like a daunting task. Maybe you have thousands of posts, pages, and links with your current URL embedded within them.

Thankfully, it’s quite a simple process. But simple doesn’t mean nothing will go wrong…so please back up your database before doing this! (I didn’t but I don’t want to be held liable xD). Alright, on to the 5 simple steps!

Go to your domain registrar (godaddy, namecheap, etc) and point the new URL to the IP Address of the site hosting your WordPress site. Keep the old URL pointing there as well; we don’t want to invalidate links to your website from outside sources!

This little guy will help us replace alllllll occurrences of the old URL within our posts and pages with the new one. Go to plugins –> Add New –> and search for “Search and Replace” (by Frank Bültge, thanks buddy!). Install and activate the plugin.

plugin

In your WordPress dashboard, go to Settings –> General, and change the Site Address to the new URL. DO NOT change the WordPress Address yet; we will later. This will allow us to still access our dashboard after changing the site URL.

site_url

*Note: Screwed up on the above step and can’t login to your WordPress dashboard anymore? Find your wp-config file on your server (via FTP, VNC, etc) and add this line to the top of the file: define(‘RELOCATE’, true); Now navigate to www.YOUR_OLD_URL.com/wp-login.php. You should be able to log in. Once you do, remove that line from your wp-config file! (or comment it out).

From the WordPress dashboard, go to Tools –> Search & Replace.  In the Search for text box put in your old URL name. For example: oldurl.com. Do not include the http://www. so that you will grab all occurrences (unless you happen to be adding SSL or something?).

In the Replace With text box add the new url. For example: newurl.com. Make sure that the second Radio Button is ticked (by the Replace option) if you want to actually execute the replace and not just do a search.

search_and_replace

In your WordPress dashboard, go to Settings –> General, and change the WordPress Address to the new URL. You should be good to go!

wordpress_url

*Note: You may experience 404 errors for a while due to confused DNS cache.  If this occurs, try accessing the site from a different device or network. If it still isn’t working, wait a little and try again. Still having issues? Use Google first, then shoot me an email or comment below!

 

And that’s it! Wasn’t so bad right? Enjoy your new site URL!

Leave a Comment.