Windows IIS 7.5 configure 301 redirection (URL rewriting)

Source: Internet
Author: User

Iis7.5 and Yiyi iis6 have changed a lot. Next I will introduce how to configure 7.5 redirection (URL rewriting) in Windows IIS 301. It is helpful for you to dismiss iis7.5.

Background:

If you need to change the webpage URL according to the style shown in the seo search engine results, we recommend that you use server-side 301 redirection. This is the best way to ensure that users and search engines are directed to the correct webpage. The status code 301 indicates that a webpage has been permanently migrated to the new location.

301 redirection is particularly useful in the following situations:
1. You have moved your website to a new domain and want to complete the conversion as smoothly as possible.
2. People visit your website through different websites. For example, if you can access your home page in multiple ways, such as http://example.com/home?http://home.example.com or http://www.example.com, select one of them as the preferred (standard) Target URL, it is a good method to send traffic from other websites to the preferred website through 301 redirection.
3. You are merging two websites and want to ensure that the link pointing to the expired website is redirected to the correct webpage.

Configuration example:

1. Redirect the traffic in the specific path after the first-level domain name to the second-level domain name: http: // domain name. me/archives/1114-> http: // blog. domain name. me/archives/1114

 

Click the "URL rewriting" function module under the first-level domain name, add blank rules, enter the corresponding regular expression in the mode, and then click "test mode" to check whether the expression is correct, the brackets in the regular expression can be dynamically captured.

 

 

2. Redirect access to sub-directories under the first-level domain name to the second-level domain name: http://www.bKjia. c0m/api-> http://www.bKjia. c0m

 

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.