How do I do 301 permanent redirects after changing the domain name?

Source: Internet
Author: User

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

Hello everyone, I am huaibei second-hand network webmaster.

Today I want to write the first time I changed the domain name, with 301 permanent redirection of the operation process. The wrong place, also please a lot of criticism advice.

Initially ready to do huaibei second-hand network, and not too concerned about the domain name, looking for a lot of people have been registered, so casually registered a http://www.hb2s.net.cn development has 3 months, second-hand information about tens of thousands, but included has been not to go, only 1000 points, PR also always do not move, Always stop in the PR1, mood a bit irritable, so think of a problem, with the Huaibei second-hand network at the same time to do a website: love to earn http://www.23wangzhuan.com online. are doing at the same time, why this love to make money on the Internet PR3, and this huaibei second-hand network is still always PR1? And there are a lot of gaps in the collection. Think about it, will not be related to the domain name, although everyone said that the domain name is not very relevant, I finally decided to change a COM domain name. Coincidentally, found a domain name http://www.hb2shou.com is also very consistent with my huaibei second-hand network theme, and this domain name is still a Lao, in 3 years ago someone did the Hebei second-hand network, and no sign of the search engine K. So, why, I decided to use this domain name.

The domain name application is good, starts uses the double domain name. Later inadvertently saw an article, said that the dual domain name will affect the weight of the search engine, it is best to keep only one, and it is best to use 301 permanent Redirect, the advantage is that the original domain name weight can be transferred to the new domain name. After searching for some information, we have a preliminary understanding of the 301 permanent redirects, and then began to implement them.

The first step, a new site, binding old domain name as shown:

  

In the second step, select the site that you just created in IIS, right, properties, home directory, select Redirect to, enter the new domain name to turn to, while paying attention to the following "exact URL entered above" and "permanent redirect of resources" then point to apply, 301 permanent redirect even if done. Figure:

  

At this point, perhaps you will find me after the domain name plus $s$q characters, here to explain:

$S to pass the suffix of the requested URL to the new URL. The suffix is the part of the initial URL that is reserved after the redirected URL is substituted.

If the exact_destination flag is not set, the name of the resulting destination URL will have the name of the requested file (as the folder name) and the file name itself.

$Q the parameters in the initial URL, such as the QueryString parameter, are passed to the new URL, including the question mark (?).

If you do not add the above characters, the internal page 301 will jump to the first page, plus the above characters is the purpose of the page can also accurately jump to the corresponding page of the new domain.

After we finish, we have to check if we are doing the right thing. Open the old domain name directly jump to the new domain name, and then open the inside page also directly jump to the new domain name inside the page, OK, the description of success.

If there is no, welcome to the master of additional indications. Thank you.

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.