Search code examples
iisurl-rewritingasp.net-2.0isapi

IIS7: URL Rewriting with period


I'm using SEO-friendly URLs, and I can process most of them with ASP.NET, by mapping aspnet_isapi.dll to all URLs. (I set up an Handler Mapping in IIS that uses the dll for all paths. (path = *))

However, that doesn't seem to work when the last character of a "subfolder" is a period. E.g., I have a URL of /brakes/A.B.S./, and that won't trigger the mapping. So I end up with 404s for such URLs. Does anybody know how I should setup the mapping to trigger this? (I've tried *. and that doesn't work either.)


Solution

  • Try changing this setting in your web.config:

    <httpRuntime relaxedUrlToFileSystemMapping="true" />
    

    http://haacked.com/archive/2010/04/29/allowing-reserved-filenames-in-URLs.aspx