« Previous Next »

Thread: A few questions on the rewrite module

Last post 06-30-2009 4:00 AM by Yankee85. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 06-29-2009, 6:00 AM

    • Yankee85
    • Not Ranked
    • Joined on 06-29-2009, 5:42 AM
    • Posts 2

    A few questions on the rewrite module

    Hi!

     I watched Ruslan's video (which is great!) and I have a few questions:

    1. Can I access the module programatically using C#? I am interested to add/delete/edit the static rules (the Rewrite Map).

    2. Where can I find the source code for Ruslan's video? (URL Rewrite Module Test Page). I am interested to see how can I access Server Variable/Value pairs.

    Thank you!

  • 06-29-2009, 12:59 PM In reply to

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

    Re: A few questions on the rewrite module

    I'm glad you liked the video. :)

    1. You can add/edit/delete rewrite rules programmatically, by using Microsoft.Web.Administration namespace. Take a look at this post to get you started with writing the code: http://ruslany.net/2008/07/scripting-url-rewrite-module-configuration/

    2. You can get the sample code from this article: http://learn.iis.net/page.aspx/461/creating-rewrite-rules-for-the-url-rewrite-module/

    http://ruslany.net
  • 06-30-2009, 4:00 AM In reply to

    • Yankee85
    • Not Ranked
    • Joined on 06-29-2009, 5:42 AM
    • Posts 2

    Re: A few questions on the rewrite module

     Great!

    Thanks a lot man! :)

Page 1 of 1 (3 items)