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:...
RossVermette
Nimbostratus
Jan 18, 2018I think the notepadd ++ is getting rid of some CR/LF characters.
Try this for iRule:
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