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 ...
VernonWells
Employee
May 04, 2016Alternatively, 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
}
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