Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
XML
<rewriter>
<rewrite url="~/Details/(.+)" to="~/NewsDetails.aspx?id=${encode($1)}"/>
</rewriter>


my email: *************

[Edit:Added Pre tag, removed e-mail (I do not recommend distributing your e-mail adress)]
Posted
Updated 14-Jun-11 12:39pm
v2

1 solution

It is a rewrite rule for a web server. It means that anything that is example:

/Details/12
/Details/3433
/Details/Hello

Will be redirect to a new URL

/NewsDetails.aspx?id=12
/NewsDetails.aspx?id=3433
/NewsDetails.aspx?id=Hello

It is do make human friendly URL addresses, like what's that mean, please[^]
 
Share this answer
 
v2

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