Saturday, September 24, 2022
  • Home

URLrewrite module for IIS7

June 1st, 2008 by Patrick S

One of the most anticipated features for IIS is now available. Yesterday the first preview of the URL re-write module for IIS 7 was launched. It is free for all IIS7 users and available for download x86 and x64.

So what does it do exactly?
The URL Rewrite Module provides a rule-based rewriting mechanism for changing request URL’s before they get processed by IIS. The module supports regular expression based URL rewriting logic or a simpler wildcard-based URL rewriting logic. Rewriting decisions can be based on the URL, HTTP headers and server variables. While the primary purpose of the module is to rewrite URLs, it also has functionality to perform redirects, send custom responses and abort requests based on the logic expressed in the rewrite rules.

Here is a quick feature overview:

  • Rules-based URL rewriting engine. Rules are used to compare/match the request URL with and what to do if comparison was successful.
    • 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
  • Back-references to patterns and conditions. Back-references are used to capture parts of a matched URL so that it can be re-used later in a rule when constructing a substitution URL string. Back-references are available with regular expression and wildcards patterns.
  • Global and distributed rewrite rules. Global rules are used to define server-wide URL rewriting logic. Global rules cannot be overridden or disabled by lower configuration levels. Distributed rules are used to define URL rewriting logic specific to a particular configuration scope, e.g. an web application.
  • 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 IIS format.

Install the URL Rewrite Module today!

Microsoft URL Rewrite Module for IIS 7.0 CTP1 (x86)

Microsoft URL Rewrite Module for IIS 7.0 CTP1 (x64)

Sourced from : Bill & Thomas’s IIS blog’s 

Posted in Windows Server System | 2 Comments »

This entry was posted on Sunday, June 1st, 2008 at 1:35 pm and is filed under Windows Server System. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

2 Responses

  1. Noticias 01-Junio-2008 - La Web de Programación Says:

    […] URL Rewrite Module for IIS CTP1: Excelente herramienta para reescritura de URLs antes que las procese el IIS, por fin "integrada" en el IIS 7. […]

  2. Jeremy Prevost Says:

    I was excited until I saw an ‘importer’ for mod_rewrite rather than just using .htaccess files directly. Oh well, back to Apache on Windows as we’ve got devs on Macs and deploy on Windows which makes maintaining two sets of rewrite configs unpleasant.