WordPress stores domain name, here's how to change it

I had multiple domain names pointing to the same place (www.lernerconsult.com and www.lernerc.com were identical).  Then the DNS for lernerc.com got altered.

WordPress was translating calls from www.lernerconsult.com/blog/ into www.lernerc.com/blog/ and that didn’t work…

Here’s how to adjust it:

You will need to access the MySQL database (I use phpMyAdmin) for the WordPress database (mine is named _wrdp1).

In phpMyAdmin, in the database used by WordPress, there is a table wp_options.  Click on the table name, click on Browse and update the values for siteurl and mailserver_url. Save your changes.

That is enough to be able to browse to the WordPress Admin page (http://yourdomain.com/blog/wp-admin/ ) and click on Options and change the Blog address field — the required field for fixing the problem.

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.