Moving WordPress to a New Domain Name

So there are a couple of things that you’ll need to do before to ensure a successful move of your WordPress Installation to a new domain name.

1. I’m sure you know how to copy all of the WordPress Files and Database to the new location where the new domain name has been setup. I’m not going to cover this, because I think its pretty straightforward and easy to find online.

2. After the move, you might notice that you’re unable to login to the admin interface “wp-admin”. A simply edit to the wp-config.php file will resolve that quickly. Place the following in the wp-config .php file within the root of your WordPress installation.

define('WP_HOME','http://geektank.net');
define('WP_SITEURL','http://geektank.net');

The domain name ‘geektank.net’ would be the new domain name, once the file has been modified and uploaded. You should be able to login to the admin interface at “wp-admin” again.

3. The next big issue you will find is that some plugins and images will still retain the old domain name. This is something that you will need to change manually by searching for the old domain name in your database using “phpMyadmin”.

Once I find a table with 10+ entries, I run a phpMyadmin query and do a search and replace.

update [table_name] set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');

Once you run the query, if you do another search you’ll won’t find the old domain name being referenced in those tables anymore.

Viola, you’re done. If you need more instruction on how to complete the above tasks. Post a comment and I will update this post!


Did you like this article?


0 Shares:
You May Also Like

First Google Android Phone Approved by the FCC

The first Google Android Phone has been approved by the FCC. The HTC dream will be the first Android phone.
Today, the news broke that the HTC Dream, the first handset to run Android (aka "the Google Phone") has been approved by the FCC. In the documents provided, it appears that we have now a release date for this highly anticipated phone: November 10th, 2008.
Another challenger appears! Read the full article at readwriteweb.com
Read More

FOSS Advertising Network Ad Bard

Ad Bard is a free advertising community for FOSS oriented websites and advertisers. A snippet from their about page
The Ad Bard Network aims to foster a friendly and useful advertising community for FOSS oriented websites and advertisers. As a fellow Ad Bard, you will help to ensure that the advertisements in our network remain useful, relevant, and non-obnoxious. Ad Bard members earn 80% of the price-per-click each time an advertisement is clicked on your website. Our advertising community is entirely built with free and open source software, with all involved algorithms and schemas freely available for public scrutiny.
Definitely a neat and good way for FOSS websites to generate revenue aside from donations. Ad Bard Website
Read More