Keep IIS 7 URL Rewrite module from matching /ScriptResource.axd

Posted by D.R. Payne on Stack Overflow See other posts from Stack Overflow or by D.R. Payne
Published on 2010-02-09T19:30:48Z Indexed on 2010/04/11 0:03 UTC
Read the original article Hit count: 829

Filed under:
|

I have a website and I have installed URL Rewrite using Web Platform Installer. I wish to allow a user friendly URL like www.foo.com/123456 to go to www.foo.com/page.aspx?blah=123456. Using the User-friendly URL template accomplishes this except that the created rule also matches all of the /scriptresource.axd?blahblah created by ASP.NET which of course breaks most functionality. My initial attempts to exclude the script resource files have failed.

The regex generated by the tool is ^([^/]+)/?$

© Stack Overflow or respective owner

Related posts about iis7

Related posts about url-rewriting