1. Open your web project in Microsoft Visual Studio .NET.
  2. Add a reference to the Intelligencia.UrlRewriter assembly.
  3. Open the web.config file in your web project.
  4. At the top of the file, add a configuration section handler:
    <configSections>
    <section
    name="rewriter"
    requirePermission="false"
    type="Intelligencia.UrlRewriter.Configuration.
    RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
    </configSections>

    This enables the UrlRewriter.NET to read its configuration from the rewriter node in the web.config file.

  5. Add rewriter HttpModule:
    <system.web>
    <httpModules runAllManagedModulesForAllRequests="true">
    <add
    type="Intelligencia.UrlRewriter.RewriterHttpModule,
    Intelligencia.UrlRewriter"
    name="UrlRewriter" />
    </httpModules>
    </system.web>

    This enables UrlRewriter.NET to intercept web requests and rewrite URL requests.

  6. Add some rules to your web.config file:
    <rewriter>
    <rewrite url="/tags/(.+)" to="/tagcloud.aspx?tag=$1" />
    </rewriter>

    The syntax of the rewriter section is very powerful. Refer to the reference for more details of what is possible.

  7. Compile and test!