Beware! Context.RewritePath does not end the current execution path
We've recently been working on an inherited project that's got some interesting "features", one of which is how they handle URL rewriting.
There are a number of HTTPHandlers that can be plugged into your application or ISAPI filters to enable URL rewriting in IIS