Simple URL Rewriting with ASP.NET
By: Joel Martinez on Wednesday, February 15, 2006
Reader Level: 
You've seen them before, the URLs with a querystring (the stuff after the ?) a mile long. There's no way the user will ever hope to remember that URL without bookmarking it. And what's worse, search engines don't seem to like following those links if they're too long. Ever since people started making dynamic websites, they have been in love with the querystring. But it's time to break free, take a stand, and start making our URLs simple, and easy to remember.
This article shows you how to create an ASP.NET HTTP Handler that will automatically redirect traffic from a nice URL, to one with querystring parameters behind the scenes without letting the user know what's going on. This allows you to use the same tried and true techniques for creating web applications that you've gotten used to, while at the same time giving your users the kind of URL Experience they deserve (did I just say URL Experience?).
Code is presented in C# and runs under ASP.NET 2.0
The ASP.NET URL Rewriter Series:
Simple URL Rewriting with ASP.NET
Extending the ASP.NET URL Rewriter
Purchase this item
You can purchase this piece of content separately for
$3.00
Want more?
Community MX members get unlimited access to daily articles,
tutorials, extensions and support. The most comprehensive
resource for Macromedia designers and developers today.
Take a tour of what we offer, and discover the benefits
of subscribing.
Already a member?
Simply log in using the form in the top right area of the site.



