301 redirection and cname

Source: Internet
Author: User

The cname record indicates that the domain name points to another domain name.
The A record is the Domain Name Pointing to the IP address
A URL jump will jump to another specified URL when the URL is opened. The URL jump can be divided into 301 permanent redirect and 302 temporary redirect.


301 permanent redirection will enable the search engine to use the new address after the redirection when capturing new content, and 302 temporary redirection will enable the search engine to retain the old address before the redirection when capturing new content.

It's all about turning one address to another. What's the difference?

First of all, cname occurs in DNS domain name resolution. It is used to direct a domain name to another domain name.

 

That is to say, if we enter a, we actually get the IP address of the B domain name. B is the alias of A. In fact, A and B are the same website.

 

Cname indicates the domain name's direction.
301 is the domain name jump

 

301 redirection is a redirection result returned by the server after an HTTP request is sent. It is a jump between two websites.

If there is a website! But you have to make another website for some reason! But you don't want the previous website to lose traffic! You can perform a 301 redirection!
Redirect your old domain name 301 to your new domain name! In this way, the previous website will be directly transferred to your new website! In this way, the traffic of your old website will not be lost!

 

IIS server implements 301 redirection* Open IIS, right-click the webpage or directory to be redirected, and select "redirect to URL ", * Here is an example of redirecting to Baidu. * In the "redirect to" input box, enter the URL address of the target webpage. * select "permanent redirection of resources" (remember) * click "application"

 

301 redirection and cname

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.