Forum Discussion
John_Stevensen
Nimbostratus
Jan 18, 2018iRule 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:...
Lee_Sutcliffe
Nacreous
Jan 18, 2018I've removed the capitalisation, semi-colons and for some reason the hyphen used before -glob wasn't the correct character:
when HTTP_REQUEST {
switch -glob[string tolower [HTTP::uri]] {
"/" {
HTTP::redirect "http://site1.abc.com/main"
}
"/v2" {
HTTP::redirect "http://site1.abc.com/second/api/v2"
}
default {
log0.notice "do nothing"
}
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects