Forum Discussion
Eric_Frankenfie
Nimbostratus
Jun 25, 2010HTTP Redirects
I am new to iRules and going through baptism by fire.
I would like the following URLs: http://www.qa.ipcws.fiserv.com, http://qa.ipcws.fiserv.com, https://www.qa.ipcws.fiserv.com, https://qa.ipcws.fi...
Eric_Frankenfie
Nimbostratus
Jun 25, 2010This is what I came up with so far...
when HTTP_REQUEST {
if {[HTTP::host] matches "https://qa.ipcws.fiserv.com"}
HTTP::redirect "https://qa.ipcws.fiserv.com/cws.web/Login.aspx"
}
But I receive this error when attempting to save the iRule
01070151:3: Rule [qa.ipcws.fiserv.com-redirect] error:
line 2: [parse error: PARSE syntax 37 {syntax error in expression "[HTTP::host] matches "https://qa.ipcws.fiserv.com"": extra tokens at end of expression}] [{[HTTP::host] matches "https://qa.ipcws.fiserv.com"}]
line 2: [missing a script after "if"] []
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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