iis5.1/6.0/7.0+ configuration URL Rewrite no extension pseudo-static

Source: Internet
Author: User

Original link: http://www.cnblogs.com/diose/archive/2013/02/21/2920324.html

Recently engaged in URL rewriting encountered IIS without extension and HTML mapping issues for posterity to view

Because there are many features to consider (Urlrewriter components do not meet the requirements) so the HttpModule method is used to rewrite

Add application mappings in iis5.1. * (Note that this method is only available in 5.1) to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll determine if the file is removed

iis6.0 searched a lot of articles can not, finally saw an article in the wildcard application map insert Isapi.dll file mapping

Restarting the IIS directory map is working (it is said to consume server resources)

Below iis7.0+ version of this is more cumbersome but very simple not like iis6.0 I've been looking for a long time to find a way

  

1) First create a new application pool, name arbitrary, such as: Myweb, managed pipeline mode is temporarily set to Integrated mode;

2) Deploy the site and set the application pool for this site to MyWeb

3) Select the site, switch to the function attempt to find "server components," "Handler mapping", double-click, in the Open window on the right side of the action column to do the following settings:

Add script map: request path. html, executable file selection C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll, the name is arbitrary;


"Add Wildcard script map": Request path *, executable file: C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll, the name is arbitrary;


6) "Add managed Handler": Request path *, executable file: System.Web.UI.PageHandlerFactory, name arbitrary;;

4) Open the site switch to the function try, find "Server Components", "module", double-click, in the open window to the right of the Action section, click "Add Managed Module", type

Set up your own Httpmodel module and select "Make request calls only for ASP. NET applications or managed handlers";

8) Finally, find our first step to establish the application pool MyWeb, set the managed pipeline mode to Classic mode.

Restart Web site View

iis5.1/6.0/7.0+ configuration URL Rewrite no extension pseudo-static

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.