« Previous Next »

Thread: Rewrite url using database

Last post 11-27-2009 1:15 AM by Leo Tang - MSFT. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 11-24-2009, 10:49 AM

    • herpi
    • Not Ranked
    • Joined on 04-25-2006, 8:58 AM
    • Belgium
    • Posts 1

    Rewrite url using database

    Hello,

    Is it possible to rewrite an url from http://www.site.com/example to http://www.site.com/page.aspx?id=55, where title to id mapping is stored in a database table?

    Thanks

  • 11-24-2009, 10:39 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,379

    Re: Rewrite url using database

    I think the current URL Rewrite module does not support this requirement. But you can write your own module to achieve that,

    http://learn.iis.net/page.aspx/107/runtime-extensibility/

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 1 hour, 55 minutes ago In reply to

    Re: Rewrite url using database

    Hi,

    You may consider URL rewrite maps. "A rewrite map is an arbitrary collection of name and value pairs that can be used within rewrite rules to generate a substitution URL during rewriting. Rewrite maps are particularly useful when you have a large set of rewrite rules and all of these rules use static strings (that is, when there is no pattern matching used). "

    There is more information in the following article, hope helps:

    Using Rewrite Maps in URL Rewrite Module
    http://learn.iis.net/page.aspx/469/using-rewrite-maps-in-url-rewrite-module/

     

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (3 items)
Microsoft Communities