Move Wordpress Blog To A New Host Or Domain
Before you move a wordpress blog to a new host you should prepare a few things.
First of all make a backup of your database. Next you should copy your complete site to the new host or directory. Once it’s there make sure you got no 403 forbidden error. If you do read the previous post.
When everything is set, you should now open that “general” settings page in your wordpress admin panel and add the new domain names (don’t save yet). Also open the .htaccess file of your old site and add the following:
Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
Now, quickly save both the wordpress admin page and your htaccess file. I can do both in less than 5 seconds, so you can do it too.
If you are *not* using permalinks you also got to run this SQL query:
UPDATE wp_posts SET guid = REPLACE(guid, 'http://www.old-domain.com','http://www.new-domain.com');
Did you link internally? Yes? Good! It’s good for seo to do interlinking to your important sites. To update your posts run this query too:
UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');
VoilĂ , you now moved your wordpress blog to a new domain!
Like our posts? Then subscribe via Mail:
Similar Posts:
- Rewriting “www” to “non-ww” Domain
- Google Penalties – What you should avoid
- Emergency Plan B – Wordpress Mass Attack
- Where to backorder domains?
- Word to Wordpress – Copy & Paste Text from Word to Wordpress
Socialize:
|
|











Leave your response!