Sasha
Sasha

Reputation: 20834

IIS7 and Enforce lowercase URLs

I tried to use option in iis7 Enforce lowercase URLs, but 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...)

Upvotes: 1

Views: 3606

Answers (1)

4everAStudent
4everAStudent

Reputation: 27

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.

Upvotes: 1

Related Questions