Quên mật khẩu
 Register
Xem: 2375|Trả lời: 0

Using htaccess redirect traffic from olddomain to newdomain

[Sao chép liên kết]
Đăng vào 5-6-2014 10:35:58 | Hiển thị tất cả tầng |Chế độ đọc
  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>
Sao chép mã
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>
Sao chép mã
This step is so simple but It keep your website traffic.

Bạn cần đăng nhập để trả lời Đăng nhập | Register

Quy tắc tích điểm trong diễn đàn này

Archiver|Mobile|Youtube|Facebook|Twitter|Contact|Netdepviet.org

GMT+7, 21-11-2024 06:43 PM , Processed in 0.015598 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team

Trả lời nhanh Lên đầu trang Quay lại danh sách