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.
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.
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.
In your WordPress dashboard, go to Settings –> General, and change the WordPress Address to the new URL. You should be good to go!
*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!
Thank you for reading!