Shanhui New blog quickly online look at the use of 301 redirect

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Yesterday, in Baidu search SEO word, found Shanhui teacher's new blog seozac.com has replaced Chinamyhosting.com/seoblog ranked Baidu home page, because I am a halfway seoer, so this thing is not very understanding, with this doubt, I am in the major Webmaster forum post for help, hope to be helped. But most stationmaster answer Dumolin ambiguous, not very clear. Finally, moon Teacher gave an answer "with the original SEO blog did 301 jump to the new SEO blog, this is very simple 301 weight transfer." "There is an answer to this question, and I knew 301 of it before, but I did not know that he had such a practical use, nor had he done it." Just know something about the basics. In view of the "301" has such a practical effect, I searched 301 this noun, browsing the introduction of Baidu Encyclopedia, as well as the Moonlight blog above some of the introduction. Specially in A5, hope to let more webmaster friends understand this operation means.

"301 Redirect" can also be called "Page permanent transfer" from the standpoint of SEO, "301 Redirect" is the most effective way to redirect URLs. When the site's domain name changes, using this method, the search engine will only index the new domain name, while the old domain name under all the external links are transferred to the new domain name. After this operation, there will be no web site changes due to the impact of the ranking of the phenomenon. Similarly, when you use the 301 Permanent redirect command to have multiple domain names point to the site's primary domain, there is no negative impact on the ranking of the site.

For the correct implementation of the 301 redirect, there are several methods available for your reference:

1. Add 301 redirect instructions in the. htaccess file

The use of "mod_rewrite" technology, in the form of:

Rewriteengine on

Rewriterule ^ (. *) $ http://www.***.com/$1 [r=301,l]

2. For users who use UNIX network servers

Notify search engine via this instruction spider your site file is not under this address. This is a more common approach.

Form: Redirect 301/http://www.***.com/

3. Complete the 301 redirect in the system administrator configuration area of the server software

For users who use the window network server

4. Bind/Local DNS

If you have permission to edit the local DNS records, you can resolve the problem by simply adding a record. If you do not have this permission, you can require the Web site hosting service to set up the DNS server accordingly.

DNS Server settings

To point blog.***.com to www.***.com, you only need to add an alias record in the DNS service, which can be written as: blog in CNAME www.leezisem.com.

If you need to configure a large number of virtual domain names, you can write: * in CNAME www.***.com

This redirects all ***.com records that have not been set to the end of the www.***.com.

5. Implement 301 redirects with asp/php:

ASP:

Response.status= "Moved Permanently"

Response.AddHeader "Location", "http://www.***.com/"

Response.End

PHP:

Header ("http/1.1 moved Permanently");

Header ("location:http://www.***.com/");

Exit ();

Above, 301 redirect set method reference from Moonlight Blog, this article starts in http://www.leezisem.com/post/46.html reprint please kindly, also hope more stationmaster to station to communicate. Common progress.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.