Using htaccess redirect traffic from olddomain to newdomain
You have a new domain name,that domain name seems to be easier to SEO, index. How do you often do to save old domain traffic to new one.Here is my experience :
A wrong way ( as a newbie I did )
Most of all new webmasters used following htaccess rule to move their website but this is a wrong way. This rule redirects each page on old domain to root of new domain (eg: http://yourolddomain.com/page.html to http://yournewdomain.com/) that affects indexed pages in search engine. This is not a SEO friendly way so I will not recommend it.<p>RewriteEngine On</p><p>RewriteRule ^(.*)$ http://newdomain.com/ </p>The Right SEO way
Another way to redirect is page by page. Following rule redirects each page on old domain to same page on new domain (eg: http://yourolddomain.com/page.html to http://younewdomain.com/page.html).
This is the best way also recommended by Google<p>RewriteEngine on</p><p>RewriteRule ^(.*)$ http://newdomain.com/$1 </p>This step is so simple but It keep your website traffic.
Trang:
[1]