Forum Discussion
smp_86112
May 06, 2010Cirrostratus
When I first looked at this, I thought you were missing a brace to close the HTTP_REQUEST event. But I think the problem is with this statement:
set MyRedir [string map -nocase {%3a : %3f ? %3d = %26 & %23 } $MyPath]
The comment character "" sits before the closing brace. However when iRules are processed, something funky happens when both comment characters and braces are contained on the same line. I ran into this recently myself, though it does not correlate directly to your issue:
http://devcentral.f5.com/Forums/tabid/1082223/asg/50/showtab/groupforums/afv/topic/aff/5/aft/1172116/Default.aspx
Try removing that comment character.
Also, I think I've had cases where the iRule editor has accepted code that was not accepted by the admin GUI. I tend to trust editing iRules in the admin GUI more than the editor.