Multiple Forward Slashes in URL
While testing a permalink generator & manager library for ColdFusion, I came across a potential issue where the URL in the address bar didn’t exactly match the server-side permalink. In fact, I added 600 slashes to the URL and the webpage loaded without any issues. I tried it on other websites and results varied a little bit. Microsoft IIS automatically normalizes the URI before passing it to ColdFusion as CGI.Path_Info.
I found a IIS Rewrite Rule online, but it didn’t fully work. I modified it so that it would only redirect GET requests and disabled "appendQueryString" so that the query string would be duplicated. This rule needs to be added as a local "per-site" rule instead of global since "matchType" isn't available at a global level. (I'm thinking about also disabling the rule for image, json & xml file requests.)
https://gist.github.com/JamoCA/5a873b93036c2baf0b5565abf1ac09f5









