Previous Next

Thread: IIS7 Url Rewrite Module

Last post 07-29-2008 12:56 AM by ruslany. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 07-28-2008, 3:34 PM

    • mwilk4905
    • Not Ranked
    • Joined on 03-06-2007, 5:14 PM
    • American Fork, UT
    • Posts 1

    IIS7 Url Rewrite Module

    I'm currently looking in to possibly moving over to use the new IIS7 Url Rewrite module for one of our websites. Our current system uses a third party library for url rewritting. We have the need to create some of the rules when the web application first launches. I was wondering is there a way to create some rules for the IIS7 Url Rewrite module to use at run time?

    Marc
    .Net Developer
    Orange Soda, Inc.
  • 07-28-2008, 11:15 PM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 561

    Re: IIS7 Url Rewrite Module

    I can think of a way to do this by writing a custom module to recognize requests which is triggering application start but not sure if URLRewrite can handle this out of the box. Ruslan?

    Thanks,
    Kj

  • 07-29-2008, 12:56 AM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 204

    Re: IIS7 Url Rewrite Module

    Not sure if I understand the scenario completely, but you could use Microsoft.Web.Administration namespace to create rewrite rules programmatically. See this blog post for an example.

    If this does not help - could you provide more details on why it is necessary to generate rewrite rules at application start up as opposed to just configuring them in web.config?

    http://ruslany.net
Page 1 of 1 (3 items)
Page view counter