View: 2730|Reply: 0

Using htaccess redirect traffic from olddomain to newdomain

[Copy link]
Posted on 5-6-2014 10:35:58 | Show all floors |Reading mode
  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.
  1. <p>RewriteEngine On</p><p>RewriteRule ^(.*)$ http://newdomain.com/ [R=301]</p>
Copy code
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
  1. <p>RewriteEngine on</p><p>RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]</p>
Copy code
This step is so simple but It keep your website traffic.

Reply

Use item Report

You need to log in to reply. Login | Register

Points Rules for This Section

Theo dõi bản tin
Archiver|Mobile|Facebook|Contact|Netdepviet.org

Giữ gìn bản sắc dân tộc · Trân trọng quá khứ, hướng tới tương lai。

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

InThis boardPost
Kết nối Zalo
Back to top