5Mar/100
Moving a WordPress Installation
I had a new client sign-up today, and he had a wordpress blog that needed moving. I had done that with this blog just a couple of weeks ago, but this time it was a little more difficult. My new client needed his blog moving from an old web address to a new completely different web address. This introduced a problem, as the wordpress installation had paths within it to the old website. So how did I get around it? Well.. I did the following:
Firstly I added the following into the wp-config.php file:
define('WP_SITEURL','http://example.com');
That partly sorted out the problem, however things were still not linking correctly. So I followed another guide and did the following:
- Backup your database and save the copy off-site.
- Login to phpMyAdmin.
- Click the link to your Databases.
- A list of your databases will appear. Choose the one that is your WordPress database.
- All the tables in your database will appear on the screen.
- From the list, look for wp_options. Note: The table prefix of wp_ may be different if you changed it when installing.
- Click on the small icon indicated as Browse.
- A screen will open with a list of the fields within the wp_options table.
- Under the field option_name, scroll down and look for siteurl.
- Click the Edit Field icon which usually is found at the far left at the beginning of the row.
- The Edit Field window will appear.
- In the input box for option_value, carefully change the URL information to the new address.
- Verify this is correct and click Go to save the information.
- You should be returned to your wp-options table.
- Look for the home field in the table and click Edit Field. Note There are several pages of tables inside wp_options. Look for the > symbol to page through them.
- In the input box for option_value, carefully change the URL information to the new address.
- Verify this is correct and click Go to save the information.
- Delete the folder wp-content/cache (this is a new folder added with WordPress 2.0).
- That is it.
Those 2 helpful bits of information were taken from WordPress' website: http://codex.wordpress.org/Changing_The_Site_URL#Edit_wp-config.php
Please Note: Take care when making changes like those above, they can be dangerous!
I will be posting a full guide that I found on moving WordPress from an old host to a new one. As for now, it's bed time!
Pages
Categories
- 64 Bit Compatible MSI's
- Android
- Android Updates
- Cleverhosting
- Day-to-Day
- DMS
- Fixes
- Game Server
- Healthcare
- Hosting
- Jobcentre
- Music
- Operating Systems
- Photography
- Religion
- Social Networking
- Spirituality
- Spotify
- Squid Proxy Server
- Stuff For Sale
- Uncategorized
- Videography
- Wordpress
- Work
- Youtube Videos
Blogroll
Archive
- September 2010
- August 2010
- July 2010
- June 2010
- March 2010
- February 2010
- November 2009
- October 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- September 2008