Forum Discussion
Debbie_123533
Nimbostratus
Oct 24, 2013Redirect
I have a very simple redirect I want to create but can't seem to get my syntax correct.
All I want to do is redirect Http://website1 to http://website2
How do I do this with a simple iRule?...
Debbie_123533
Nimbostratus
Oct 24, 2013I'm getting the following error when I try to save this rule:
01070151:3: Rule [/Common/WisconsinFastForwardRedirect] error: line 1: [wrong args] [when HTTP_REQUEST ] line 2: [undefined procedure: if { [string tolower [HTTP::host]] equals "website1" && not ([string tolower [HTTP::uri]] starts_with "/app")} { HTTP::redirect "http://website2" } ] [{ if { [string tolower [HTTP::host]] equals "website1" && not ([string tolower [HTTP::uri]] starts_with "/app")} { HTTP::redirect "http://website2" } }]
rob_carr
Cirrocumulus
Oct 24, 2013Try putting the opening brace on the same line as 'when HTTP_REQUEST', and make sure that you have the right number of closing braces.
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