Change the Domain on a WordPress Site

If you’ve recently tried to change the domain name associated with your WordPress site, you’ll notice that just changing it on your hosting account (say, in godaddy) will actually break the site.

But don’t worry, because this is actually a quick fix.

This post is a follow-up from the post: Transfer Typepad to WordPress but also applies if you’re changing the domain on the hosting account for any reason.

The Problem

You’ve got a WordPress site with a domain name: exampleDomain.com

You’ve got a new domain, NewDomain.com, that you want to use for the WordPress site.

You logged into your hosting account and changed the primary domain name on that hosting account – and now your blog is not allowing you to log in.

The Solution

WordPress keeps the domain name in the database. It then builds all the meta links, etc. off of this domain name.

  1. Log into your database for WordPress. (If you don’t know how to get here or what I’m talking about, you need to hire someone to do this for you. The database is the vault for everything for your website. One wrong click and you can delete the entire thing…or completely ruin it.)
  2. Go to the table that ends in “_options”.
  3. On the first page, you’ll see the old domain name in a field about three down. Edit that field with the new domain name. This one controls the meta links.
  4. Click to the second page, and you’ll see the old domain name again, about 1/3 of the way down. Edit that field with the new domain name as well. This one controls the permalinks.

Need some help? Contact me at KimJoyFox at gmail.com to help you move your website.

 

Comments