Change domain name do not fear 301 turn to help

Source: Internet
Author: User
Keywords Steering www domain name http

My station was originally bound two domain names. But do not know which mjj to say like two domain name easy to be k, or down right. So change the two domain name to a domain name. But another domain name also has the traffic, how to do? This is the time to use the 301 turn. But how does 301 turn to the concrete how to operate? Let me just say.

My station originally used is www.jqku.cn and http://www.jqku.net two domain names. I now take www.jqku.net as the main domain name, turn www.jqku.cn to jqku.net up.

Originally wanted to use the URL of the domain name to turn. But it seems to be audited for a long time. Trouble, and can only do the homepage of the steering. For Google ah Baidu Ah has been included in the page this turn does not work. Also wanted to go with the code. But can only turn the home page, think about it. Thought of the 301 turn.

301 turn to concrete how to turn. Check it online. There's hardly any information on how to turn under IIS. There are a few articles to look at. 301 steering is limited to the home page. I want to go inside the page too, this can not. Before see Baidu Bar turn of the time others are OK. I think, on this point.

After a few twists and starts, I found it from Microsoft website. 301 turn to add parameters. On。 I said what's going on. I didn't add any parameters. Plus variables

The following are the referenced contents:

$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 (?).

The specific operation is.

Open IIS. Create a new Web site. Binding to make a steering meter. Like my www.jqku.cn then right key, properties, home directory.

The following are the referenced contents:

The contents of this resource are from: Select Redirect to URL (U)

Redirect to (C) Here enter my new domain name http://www.jqku.net$s$q (Note that I've added the parameters behind $s$q)

Client Redirect to: Select the exact URL (X) entered above and the permanent redirection of the resource (H)

Then make sure it's OK.

Test it. Enter http://www.jqku.cn in the address bar to automatically jump to http://www.jqku.net

On the inside page of the trial jump. Revenue http://www.jqku.cn/tv/hk_tw/ht_13938.html automatically jump to http://www.jqku.net/tv/hk_tw/ht_13938.html

OK, Success!

Www.jqku.net Plot Library original, reprint please specify!

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.