Aditya Kumar
Aditya Kumar

Reputation: 11

IIS7 and Enforce lowercase URLs combres.axd not loaded

I have successfully applied IIS Rule (Enforce Lowercase URL) on my website but now I have one issue our one file combres.axd stopped loading. I tried to apply others way also which I found on stackoverflow but no success yet. Please advice how to fix this issue.

enter image description here

Upvotes: 0

Views: 50

Answers (1)

Jalpa Panchal
Jalpa Panchal

Reputation: 12759

You could try below rule to change URL into lowercase:

<rule name="LowerCaseRule">
  <match url="[A-Z]" ignoreCase="false"/>
  <action type="Redirect" url="{ToLower:{URL}}"/>
</rule>

Below is the result:

enter image description here

Failed request tracing result:

enter image description here

If you still face and issue you could run failed request tracing in iis and check why the URL is giving you a 404 error. another thing make sure the file exists at the place with the same path and name.

https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-failed-request-tracing-to-trace-rewrite-rules

Upvotes: 0

Related Questions