|Posted: 27 June 2011 at 1:26pm
I'm having issues with a rule that is auto adding the Trailing Slash to my URLs. We are a .Net shop that is starting to utilize the Model View Controller Framework and on those sites that use MVC we do not want to add in the Trailing Slash via the ISAPI rules. However I've found that several, not all, of my Applications break if I simply comment out the trailing slash rule in the httpd.ini file. I'm not sure what is happens because in our Test envir. it does not seem to be a problem, we've commented out the rule there and all apps work as expected.
I've inherited this network and I'm not a developer by any means so I'm not sure why it was put there in the first place, I've just been told to remove it. Obviously I can't just simply pull the plug on the rule because it breaks several production apps.
I was hoping someone here could help me understand the purpose of why we'd have this rule and why it may effect only some applications. I've copied the rule below if anyone needs a reference what I'm referring too. As I mentioned we are a .Net shop running on W2K3 servers.
RewriteCond Host: (.*)
RewriteRule ([^.]+[^/.]) http\://$1$2/ [I,R]
Any thoughts or suggestions would be very much appreciated.