John_Stevensen
Jan 18, 2018Nimbostratus
iRule not parsing correctly... hidden spaces?
Pulling hair out on this one.... trying to find a hidden space? Trailing space? Bad juju?
When inputting this iRule straight from Notepad++ - I get this nasty bit of NON-HELPFUL information:
01070151:3: Rule [/Common/site1.abc.com_redirect2] error: /Common/site1.abc.com_redirect2:1: error: [undefined procedure: When][When HTTP_REQUEST { Switch –glob [string tolower [HTTP::uri]] { “/” {HTTP::redirect "; } “/v2” {HTTP::redirect "; } default { do nothing } } }]
The actual iRule is this:
When HTTP_REQUEST { Switch –glob [string tolower[HTTP::uri]] { “/” {HTTP::redirect "; } “/v2” {HTTP::redirect "; } default { do nothing } } }
Any help is much appreciated.