Sunday, August 06, 2006

URL Rewriting ASP.NET 2.0

Simple URL rewriting is very easy in ASP.NET 2.0 with element in the web.config file. You can just add the following to section of the web.config file to map UglyUrl.aspx to NiceUrl.aspx.

<system.web>
<urlmappings>
<add url="”~/UglyUrl.aspx”" mappedurl="”~/NiceUrl.aspx”">
</urlmappings>
</system.web>

No comments:

Post a Comment