UrlRewriter.Net with URL with final dot

Posted by devio on Stack Overflow See other posts from Stack Overflow or by devio
Published on 2010-08-18T20:43:02Z Indexed on 2010/12/31 11:54 UTC
Read the original article Hit count: 292

I want to use UrlRewriter.Net as described in this blog by ScottGu.

In the example below, page.aspx should display a page text stored in the database based on the title= URL parameter.

After a couple of tweaks the only remaining issue seems to be that

  • a final dot in the URL causes a 404

  • a sequence of two dots in the URL causes a 400

Windows 7, IIS 7 with Integrated AppPool, VS2008.

Looking at the Failed Request Log, it seems that the UrlRewriter module is called after retrieving the request handler.

Can these two issues be fixed, or is there a better replacement for UrlRewriter? (A related question only asks about the 404)

Edit: This behavior can even be reproduced on SO, so maybe there is no work-around?

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about url-rewriting