This question will work best with examples.
Say my web application is hosted on http://example.com/WebApp/
According to Microsoft , IIS will be redirected if missing a slash. And this works as expected: a request sent to http://example.com/WebAppis redirected to http://example.com/WebApp/.
Now in my case, someone added the URL-address with an extra slash: http://example.com/WebApp//. This will load the web application as expected, but now all relative URLs are erroneous. Therefore, if I call another application in the same domain, for example ../AnotherApp/SomePage.aspx, it will try to download /WebApp/AnotherApp/SomePage.aspxinstead of the correct download /AnotherApp/SomePage.aspx.
How to redirect http://example.com/WebApp//to http://example.com/WebApp/?
source
share