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

AMD 64 2000+ vs Intel’s Atom: AMD’s 8-watt processor outperforms Intels Atom

Intel's Atom processor and AMD's 64 2000+ were pitted against each other. And the results were for once in favor of AMD.
In our Munich lab’s duel of the energy-savers, the AMD Athlon 64 2000+ beats the Intel Atom 230 in energy consumption and processing power. Each of the systems was based on a desktop platform. The Achilles heel of the Intel system is its old system platform with the 945GC chipset, while AMD offers a more modern 780G platform. The energy-saving solution from AMD offers more possibilities: it has three times as many SATA ports, possesses better onboard graphics performance, and can also support two monitors. Unlike the Intel solution, an HD resolution (1920x1200) with high picture quality is possible through DVI/HDMI ports. And early information suggests that the AMD Athlon 64 2000+ should cost close to $90.
Read the full article at tomshardware.com
Read More

Are Network Carriers To Blame For iPhone 3G Problems

I was recently having issues with my phone not being able to use 3G, and I thought it might have been a firmware or possibly hardware issue. But after troubleshooting for some time, I found that it was in fact applications crashing or firmware bugs. Hearing more and more reports of network issues with 3G and iPhones, Wired Magazine decided to do a survey of 3G coverage across america.
Read More

Fastcgi and the dreaded aborted: select() failed

I was getting reports of "500 Internal Server Errors" on two of my web servers. And after further investigation it looks like it was related to the following error.

(4)Interrupted system call: FastCGI: comm with server "php-fastcgi.fcgi" aborted: select() failed

After doing some reasearch I stumbled upon the following patch.

http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/3de22bc415d3da02?pli=1

Read More