Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In URL Rewriting I need to find a pattern such as www.xyz.com/abc/ or www.xyz.com/abc or www.xyz.com/abc/default.htm and redirect them to default.aspx.

I tried with following rule but it's not working for me
XML
<modulesSection>
  <rewriteModule>
    <rewriteOn>true</rewriteOn>
    <rewriteRules>
<rule source="(.*)/(.*)/(.+)" destination="Default.aspx"/>
    </rewriteRules>
  </rewriteModule>
</modulesSection>
Posted
Updated 8-May-12 2:11am
v3

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900