I m having an issue in my ASP.NET web app where intentionally consecutive backslashes are being removed from the request url.
I ll request something like: localhost/Page/A//C
But when the request hits the page, the raw url is: localhost/Page/A/C
Not sure if this is the culprit, but I do have a Url Rewite regex in place, here s the rule:
<system.webServer>
<rewrite>
<rules>
<rule name="Games QueryString">
<match url="^(Page|OtherPage).aspx(?:/([w-_()]+)(?:/([w-_() ]*)(?:/([w-_()]+))?)?)?$" />
<action type="Rewrite" url="{R:1}.aspx?1={R:2}&2={R:3}&3={R:4}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
So, after the rewrite, the querystring is coming out as Page.aspx?1=A&2=C&3= When it should be Page.aspx?1=A&2=&3=C
Help please!!