Impact of URL Forwarding and 301 redirection on weight

Source: Internet
Author: User
Tags regular expression url forwarding

The URL forwarding function is listed as "prohibited" by domain name registrars in China. According to relevant regulations, this function is restricted. The URL forwarding function is actually not mysterious. Its most basic purpose is to associate a new domain name with an existing website. The reason for being banned is that many domain name registrants use this function to forward to illegal websites, and a large number of "high-imitation domain names" are forwarded to illegal websites to extract profits. But it does not mean that this function will be lost with the webmaster. There are two ways to use this function. The first approach is to register with a foreign domain name registrar, the managed domain name can implement the URL forwarding function, and the second one can host the domain name (or change the NX record) go to the domain name management system that supports forwarding. How to do this is not covered in this article. If you have any questions, please contact the webmaster of xiumeng. When using URL Forwarding, you need to pay attention to one problem: implicit forwarding and explicit forwarding.

Implicit forwarding: The forwarding method is similar to the cname alias. The DNS server actually forwards the data, but the user does not see the forwarding effect when it returns the data to the browser.

Explicit forwarding: The forwarding method is similar to redirection. The DNS server actually forwards data, which can be seen in the user's browser.

Implicit forwarding is disabled by most administrators because real domain names are hidden.

Next we will talk about 301 redirection. 301 redirection involves modifying apache, ngix, and iis configurations, jni. so, and. htaccess. After data capturing, it is concluded that no matter whether you modify the server configuration or use. htaccess, the data received is the same. That is to say, the data transmission and receiving methods cannot distinguish between the two methods. However, if you capture the. htaccess file, you can use a regular expression to match the redirection method. The 301 redirection content is not covered in this article.

This article focuses on URL Forwarding and 301 redirection. When the weight is transferred, the search engine transmits the value at the feedback speed. A search engine is a scoring standard that simulates user experience. If data feedback is too slow, it is considered that the user experience is poor. After research, we found that the URL forwarding speed is the fastest, on the premise that there is a good DNS, the second is to modify the server configuration 301 redirection, and the slowest is to modify the. htaccess file.

Principle: URL-based forwarding is a DNS-level transmission of data with high efficiency, low data volume, and high speed. Modifying local server settings is more efficient than modifying. the htaccess file method is fast because it is enabled. htaccess: after receiving data, the server accesses the file in the directory, which overwrites the access steps. This step is skipped if the server settings take effect directly.

The conclusion is that for weight transfer, the URL forwarding effect is better than modifying the server configuration, and both are better than modifying. htaccess.

 

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.