Introduction
The Microsoft URL Rewrite Module for IIS 7.0 provides flexible rules-based rewrite engine that can be used to perform broad spectrum of URL manipulation tasks, including, but not limited to:
- Enabling user friendly and search engine friendly URL with dynamic web applications;
- Rewriting URL’s based on HTTP headers and server variables;
- Web site content handling;
- Controlling access to web site content.
Features
The Microsoft URL rewrite module includes these key features:
-
Rules-based URL rewriting engine. Rewrite rules are used to express the logic of what to compare/match the request URL with and what to do if comparison was successful. Web server and site administrators can use rewrite rule sets to define URL rewriting logic.
-
Regular expression pattern matching. Rewrite rules can use ECMA-262 compatible regular expression syntax for pattern matching.
Wildcard pattern matching. Rewrite rules can use Wildcard syntax for pattern matching
-
Wildcard pattern matching. Rewrite rules can use Wildcard syntax for pattern matching
-
Global and distributed rewrite rules. Global rules are used to define server-wide URL rewriting logic. These rules are defined within applicationHost.config file and they cannot be overridden or disabled on any lower configuration levels. Distributed rules are used to define URL rewriting logic specific to a particular configuration scope. This type of rules can be defined on any configuration level by using web.config files.
-
Access to server variables and http headers. Server variables and HTTP headers provide additional information about current HTTP request. This information can be used to make rewriting decisions or to compose the output URL.
-
Various rule actions. Instead of rewriting a URL, a rule may perform other actions, such as issue an HTTP redirect, abort the request, or send a custom status code to HTTP client.
-
Rewrite maps. Rewrite map is an arbitrary collection of name-value pairs that can be used within rewrite rules to generate the substitution URL during rewriting. Rewrite maps are particularly useful when you have a large set of rewrite rules, all of which use static strings (i.e. there is no pattern matching used). In those cases, instead of defining a large set of simple rewrite rules, you can put all the mappings between input URL and substitution URL as keys and values into the rewrite map, and then have one rewrite rule which references this rewrite map to look up substitution URL based on the input URL.
-
UI for managing rewrite rules. Rewrite rules can be added, removed and edited by using "URL Rewrite Module" feature in IIS Manager.
-
GUI tool for importing of mod_rewrite rules. URL rewrite module includes a GUI tool for converting rewrite rules from mod_rewrite format into an IIS format.
Where to get the module
Download the x86 CTP version for IIS 7.0: http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1691
Download the x64 CTP version for IIS 7.0: http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1692
Using the module
These articles cover the functionality of the URL Rewrite Module and explain how to use it to accomplish common URL rewriting scenarios.
Learning the basics
Functionality reference
In This Section
|
This walkthrough will guide you through how to create and test a set of rewrite rules for the URL rewrite module.. Prerequisites This walkthrough requires the following prerequisites: IIS 7.0 with ASP.NET role service enabled; URL rewrite module technical ...
|
Created Aug 20 2008 by ruslany
|
|
This article provides an overview of the URL rewrite module and explains the configuration concepts used by the module. Functionality Overview The URL rewrite module provides a rule-based rewriting mechanism for changing request URLs before they are processed ...
|
Created Aug 08 2008 by ruslany
|
|
This walkthrough will guide you through how to enable “Pretty Permalinks” for blog posts in the WordPress blog engine installed on IIS 7.0. Typically, without URL rewriting functionality on a Web server, WordPress users have to use “Almost Pretty” URLs (for ...
|
Created May 30 2008 by ruslany
|
|
IIS 7.0 Failed Request Tracing (FRT) is a powerful tool for troubleshooting request-processing failures. FRT can be used with the URL rewrite module to trace how rewrite rules were applied to the request URL. This walkthrough will guide you through how to ...
|
Created Jul 09 2008 by ruslany
|
|
This walkthrough will explain the different types of rules supported by URL rewrite module and will guide you through how to configure global and distributed rewrite rules. Background Global rewrite rules are used to define server-wide URL rewriting logic ...
|
Created May 30 2008 by ruslany
|
|
This walkthrough will introduce you to the concept of rewrite maps in URL rewrite module and will guide youhow tocreate rewrite rules that use rewrite maps. Background A rewrite map is an arbitrary collection of name and value pairs that can be used within ...
|
Created Jul 17 2008 by ruslany
|
|
IIS 7.0 URL rewrite module provides rule importing functionality that greatly simplifies the process of converting Apache mod_rewrite rules to IIS URL rewrite rules. This walkthrough will guide you throughhow toimport several mod_rewrite rules into an IIS ...
|
Created May 30 2008 by ruslany
|
Comments