How to Redirect Old Domain to New Domain in WordPress

Redirecting your wordpress old domain to new domain is made using in simple steps using .htaccess file in ur root domain directory many feel that domain name they assigned earlier is not suitable for recent posts or content they are using so now we can redirect to new domain. this redirect method can redirect old posts and content to new domain posts… make sure that only the domain name will be changed this method is search engine friendly method with out losing ur pagrank and visitors

1.Having a wordpress blog with old domain now get a new domain name and addon to hosting service and install wordpress in new domain and copy all site design and widgets similar to old domain to new domain

2.Now goto ftp file directory and open ur installed addon new domain folder and delete wp-content folder

3.Now goto ftp old domain directory /public_html and open new domain folder and copy wp-content folder to new domain path /public_html/newdomain

4.new open ur old domain admin page www.olddomain.com/wp-admin and goto tools and select export option and download all posts and comments

5.then open new domain admin page www.newdomain.com/wp-admin and goto->tools import option and import all posts to new domain make sure that u place the permalink structure in new domain same as old domain

6.that all now u have tow blogs with same content same design and posts and comment no the process to redirect old wordpress domain to new domain

7.Goto ur hosting service and ftp file manager open root folder /public_html/olddomain and open the file named .htaccess
open it to edit and place the below code there

# BEGIN WordPress

RewriteEngine On

RewriteCond %{HTTP_HOST} ^olddomain.com$ [NC]
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.olddomain.com$ [NC]
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]

# END WordPress

now save it and open ur old domain admin page see that it will be redirected to ur new domain . ur search engine indexed page also will be redirected and ur feeds too redirected automatically including page rank . then your new domain will be indexed within hours

Tags: