Forum Discussion
bwilliam
Cirrus
Jun 14, 2017irule help
I am trying to create the below rule. When I apply it I get the below error. Any help will be appreciated.
error: [parse error: PARSE syntax 55 {syntax error in expression "[HTTP::host]] equals "website.qa.domain.com" and [str...": extra tokens at end of expression}][{[HTTP::host]] equals "website.qa.domain.com" and [string tolower [HTTP::uri]] contains "/mobile/"}]
The irule looks like this:
when HTTP_REQUEST
{
if {[HTTP::host]] equals "loanviewbeta.qa.berkadia.com" and {[string tolower [HTTP::uri]] contains "/mobile/"}
{
HTTP::redirect "https://[HTTP::host]"
}
}
- Ed_Summers
Nimbostratus
Initial look: there's an extra ']' at the end of your first HTTP::host entries. Also an extra '{' in front of 'string tolower'.
when HTTP_REQUEST { if {[HTTP::host] equals "loanviewbeta.qa.berkadia.com" and [string tolower [HTTP::uri]] contains "/mobile/"} { HTTP::redirect "https://[HTTP::host]" } }
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