I tried to use option in iis7 Enforce lowercase URLs, b开发者_StackOverflowut when i enabled it all images that had *.JPG extension (uppercase) stopped server. in prev version of iis it was ok when using upper and lower cases, it returned same source
may i fix it? or should i create rule for each extension like (jpeg, jpg, gif...)
I was just reading an article on writing rules, from Scott Gu
Tips/Trick: Fix Common SEO Problems Using the URL Rewrite Extension
He talks about the issue of excluding static files (.jpeg, .jpg, .gif, etc.) from the lowercase rewrite, and shows how you can add conditions to exclude files. Another article is where I found the condition for excluding more than just Scott's example
Mike's Umbraco blog - URL Rewriting and SEO
He adds the condition:
<add input="{URL}" pattern="^.*\.(axd|css|js|jpg|jpeg|png|gif)$" negate="true" ignoreCase="true" />
I hope this helps you in future rewrites.
精彩评论