How to configure Url rewriting in IIS7

Source: Internet
Author: User

You need to configure URL rewriting when deploying a test project today. Since IIS7 is not used much after Windows 7 is installed, it takes a little effort to configure URL rewriting today, finally, with the help of my colleagues, I finally completed the configuration. This operation also has some gains. I hope you can share it with us!

Sniper attack:

After the site is deployed in IIS7, you can configure URL rewriting. Based on past experience, IIS7 is considered compatible with lower version operations, but it turns out that I am wrong. Although I checked the ISAPI Extensions option during IIS installation, I did not find this option until I found it for a long time. I searched the internet for it, some people say they have seen this icon. Although I set the AppPool to the Classic mode, the ISAPI Extensions icon still does not appear. At this time, the configuration encountered a sniper attack and had to call for rescue!

Counterattack:

There are a lot of questions about URL rewriting configuration in IIS7, but the answers are all IIS6 operations, and the guy who saw the ISAPI Extensions icon in IIS7 didn't say how to install and configure it. Although I have seen someone intercept the same ISAPI Extensions window as IIS6, but I still cannot find this option. Which of the following brothers knows? I hope to tell you, thank you first! Continue to google and finally find an article with reference value:

1 <system. webServer>
2 <modules>
3 <add name = "UrlRewriter" type = "URLRewriter. ModuleRewriter"/>
4 </modules>
5 </system. webServer>

As a result (the AppPool is in the Classic mode at this time), the test still shows the 404 error. The article uses the Classic mode and the aspx suffix URL rewriting to describe how to configure URL rewriting, counterattack failed.

Arrival of reinforcements:

At this time, the colleague next to me saw that I was still playing IIS, so I asked what I was doing. I said that I would rewrite the configuration URL, and he showed it to me. As a result, I found that the site setting options for AppPool are slightly different in Classic and Integrated modes. Only pay attention to the differences in the Modules settings. The figure shows the truth. For more information, see the figure:

Classice:

 

Integrated:

 

 

As shown in the figure, the "Add Managed Module" option is missing in the "Classic" mode than in the "Integrated" mode!

 

 

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.