It seems that the iis url rewrite 2.0 is not a short time. Because there is no special requirement, he is not interested in research.
Recently maintainedProgramThe iis url rewrite 2.0 is used, and the rewrite rules are written in webconfig.
To avoid site restart caused by frequent webconfig modification, the iis url rewrite 1.1 provided by MS is rewritten, And the rules are stored in a separate data file, the File Cache dependency is used for real-time modification.
Now, the configuration of 2.0 is still written in webconfig. Do you want me to repeat the configuration of 2.0 again.
I found 2.0 of related information andSource codeIt is found that it supports expansion and supports storing rules in other data files.
Http://www.iis.net/download/URLRewrite For more information, see the official documentation.
The 2.0 features are listed here:
Features
-
- Rules-based URL rewriting Engine
-
- Rules-based response rewriting Engine
-
- Support for custom. Net rewrite providers
-
- Regular Expression Pattern Matching
-
- Wildcard pattern matching
- Global and distributed Rewrite Rules
-
- Rewriting within the content of specific HTML tags
-
- Pre-conditions for outbound rules
-
- Access to server variables and HTTP headers
-
- Rewriting of server variables and HTTP request headers
-
- Rewriting of HTTP Response Headers
-
- Allow list for server Variables
-
- Htmlencode Function
-
- Built-in Rule templates
-
- Reverse Proxy rule template
-
- Rule templates for Search Engine Optimization
-
- Various rule actions including redirect and request abort
-
- Tracking capture groups internal SS Rule Conditions
-
- Logging of rewritten URLs
-
- Updated User Interface in IIS Manager
-
- Integrated User Interface for managing Rewrite Rules and rewrite maps
- Integrated User Interface for importing of Apache mod_rewrite rules
-
- Integrated User Interface for testing Regular Expression and wildcard patterns
-
- Support for IIS kernel-mode and user-mode output caching
-
- Lowercase Conversion Function
-
- Rewrite maps to generate the substitution URL during Rewriting
-
- Failed request tracing support
There are many benefits. You can understand that some aspects are still available.
Support for custom. Net rewrite providersThis feature allows you to easily modify the storage location.