Two rewrite maps [Answered]RSS

1 reply

Last post Jul 28, 2009 08:16 PM by ruslany

  • Two rewrite maps

    Jul 28, 2009 09:23 AM|bozhday|LINK

    Good day!
    Can i write like this?



    <rewriteMap name="Category" defaultValue="-1">

                            <add key="chains" value="3" />

                            <add key="beads" value="4" />


    <rewriteMap name="Type">

                            <add key="elements" value="1" />

                            <add key="bracelets" value="2" />




    <rule name="Catalog" patternSyntax="ECMAScript" stopProcessing="true">

    <match url="^catalog/(\w+)/(\w+)(/?)$" ignoreCase="true" negate="false" />

    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">

    <add input="{Type:{R:1}}" pattern="(.+)" />

    <add input="{Category:{R:2}}" pattern="(.+)" />


    <action type="Rewrite" url="CategoryBrowse.aspx?type={C:1}&amp;cid={C:2}"     appendQueryString="true" redirectType="Permanent" />




  • Re: Two rewrite maps

    Jul 28, 2009 08:16 PM|ruslany|LINK

    You will need to set trackAllCaptures attribute on the <conditions> element to true in order for the rule to work.