S
sri_san
Hello group,
After going through a nice article at
MSDN(http://msdn2.microsoft.com/en-us/library/ms972974.aspx), I was
able to make the URL rewrite working except for coming up with a
generic rule using regular expressions.
Any URL with the format http://servername/dir/folder30/default.aspx
has to be converted to
http://servername/default.aspx?id=30
The one which I came up with and doesnt work is --
<Rules>
<RewriterRule>
<LookFor>~/dir/folder(\d)/default.aspx</LookFor>
<SendTo>~/default.aspx?id=$1</SendTo>
</RewriterRule>
</Rules>
Could anyone point out what is wrong with the rule ?
Thanks,
Sam.
After going through a nice article at
MSDN(http://msdn2.microsoft.com/en-us/library/ms972974.aspx), I was
able to make the URL rewrite working except for coming up with a
generic rule using regular expressions.
Any URL with the format http://servername/dir/folder30/default.aspx
has to be converted to
http://servername/default.aspx?id=30
The one which I came up with and doesnt work is --
<Rules>
<RewriterRule>
<LookFor>~/dir/folder(\d)/default.aspx</LookFor>
<SendTo>~/default.aspx?id=$1</SendTo>
</RewriterRule>
</Rules>
Could anyone point out what is wrong with the rule ?
Thanks,
Sam.