Forum Discussion
Cliff_Airhart_1
Nimbostratus
Apr 07, 2005Redirecting HTTP to a website using iRule
I am trying to setup an iRule that will provide the following:
When a user types the following URL ( http://www.company.com ) it will be redirected automaticall to
http:...
Cliff_Airhart_1
Nimbostratus
Apr 07, 2005When I insert the below syntax into the Rule text section in the Configuration Utility I recieve an error:
b rule myredir '{if(http_host == "x.xx.xxx") { redirect to "http://x.xx.xxx:80/index.shtml" }' b virtual 192.168.1.22:0 { use rule myredir }
Error 331835 -- Rule string to tree failed. - syntax error at '''
line 1: if (http_host == "xx.xxxx.com") { redirect to "http://xx.xxxx.com:50000/xxx" }'
I also tried to use the syntax in the BIGPIPE command line section, I also received an error.
I do see from your last post that the website was redirected. I must still be implementing it incorrectly. Are you sure that this will work with version 4.6.2 on BIGIP 540?
More suggestions?
Thank you for your patience...
Cliff Airhart
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
