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:...
bknotwell_12713
Apr 07, 2005Historic F5 Account
I've included my shell interaction below:
knotwell:~ b rule myredir1 '{ if(http_host == "x.xx.xxx") { redirect to "http://xxx.xxx:80000/dir" }}'
knotwell:~ b virtual 192.168.1.222:0 { use rule myredir1 }
knotwell:~
There are two separate commands and the virtual command must be issued *after* the rule command since a rule may not be used prior to its definition. Furthermore, the rule body must be quoted properly.
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
