Bob_10976
May 20, 2011Nimbostratus
Add a Trailing Slash to the URL
Hello all,
I'm needing to covert an ISAPI rule that adds a trailing slash to the end of a url to an iRule, however the tricky part here is i'll need to add in a few exceptions URLs.
For example if you go to my URL https://secure.mydomain.com/shopping the ISAPI rule auto adds the trailing slash "/" on the end which is fine for nearly all my URIs, but I have a few such as that I do not what the trailing slash to be added.
I have copied the ISAPI rule below for reference of what I'm attempting to do with the LTM and iRules
RewriteCond Host: (.*)
RewriteRule ([^.]+[^/.]) http\://$1$2/ [I,R]
RewriteCond Host: secure\.mydomain\.com
Any thoughts or suggestions?Thanks,
Bob