Darren_Person_2
Mar 07, 2007Nimbostratus
Vanity Url - Re-write URL
Hi!
As many of you who do .NET development on IIS know, creating a system to have clean URLs is very complex. I was hoping that we could leverage the F5 to assist, but am stuck as to how to begin. Given that the .NET pipeline always wants a file extension and we don't want to wildcard map all file extensions to go through the ASP.NET work process - we thought we could use the F5 to help us.
In IIS, we would write an HTTPModule and assign the ASP.NET pipleline for the file extension of .html.
Here are our business rules:
1. If the F5 receives a URL that does not contain a file extension it should append .HTML to the URL.
2. If the URL ends with a '/' the '/' should be removed before appending .HTML.
3. If the URL points to the root of the site .HTML should not be appended.
Can someone please help with how we should begin?
Thanks!!