Forum Discussion
smiley_dba_1116
Nimbostratus
Jun 07, 2010Redirect help
Nobbie question. I need to create a iRule that does the following.
Initial request: www.tree.example.com
Redirect to: tree.example.com
I know this is simple, but sorta new.
Thanks.
ERS
- The_Bhattman
Nimbostratus
Hi ERS,when HTTP_REQUEST { if {([HTTP:host] eq "www.tree.example.com") and ([HTTP::uri] eq "/") } { HTTP::redirect "http://tree.example.com/" } }
- VernonWells
Employee
Alternatively, you can use a Local Traffic Policy:
ltm policy tree-redirect { controls { forwarding } requires { http } rules { redirect { actions { 0 { http-reply redirect location http://tree.example.com/ } } conditions { 0 { http-host values { www.tree.example.com } } 1 { http-uri path values { / } } } ordinal 1 } } strategy first-match }
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