Monday, September 21, 2009

IIS Url Forwarding

One easy way of forwarding can be stablished from within the Web.config in the system.web section:


<urlmappings enabled="true"><blockquote><p><urlmappings enabled="true">
<add mappedurl="~/default.aspx?parm1=1" url="~/home">
<add mappedurl="~/Products.aspx" url="~/products">
<add mappedurl="~/Product.aspx?id=1" url="~/product">
</urlmappings>

2 comments:

Pouya Panahy said...

This does not work on IIS 7.x
Have a look at http://www.isapirewrite.com/docs/ which provides a more powerful and still easy way of doing more.

Anonymous said...

Hi, yeah this piece of writing is in fact nice and I have learned
lot of things from it about blogging. thanks.
Take a look at my weblog : internship in chemical engineering