Hi guys, I'm having a little trouble with URL's being forced to lowercase.
Currently all URLs are being converted to lowercase which is all good with the exception that we need to implement a string after the site path which requires uppercase letters (eg www.{SITE}.com/?ranmid=02937&ranEAID=lMh2Xiq9xN...).
As I'm taking over the project, I'm not sure where or how the URLs are already being converted to lowercase but I've checked Web.config and can't see any rule in there.
So what I want to achieve is to stop the string being converted to lowercase, is there any way to do this? eg if url contains 'section of string' then do not convert. This is the rule I've been trying to add to Web.Config so far but with no luck. Any help would be appreciated!
<rule name="ForceLowerCase" enabled="true" stopProcessing="false">
<match url="[A-Z]" ignoreCase="false" />
<action type="Redirect" url="{ToLower:{URL}}" />
<conditions>
<add input="{URL}" pattern="^/?ranmid=02937" negate="true" />
</conditions>
</rule>