Forum Discussion
Senthil_7991
Nimbostratus
Apr 27, 2017Redirect iRule request
The current VIP is pointing to single POOL, this POOL server using two different URL.
1] http://www.abc.com
2] http://video.abc.com
Currently we would like to redirect one of this URL from ...
Stanislas_Piro2
Cumulonimbus
Apr 27, 2017Hi,
you can try this irule:
when HTTP_REQUEST {
if {[HTTP::host] equals "video.abc.com"} {
HTTP::redirect "http://www.abc.com/video"
}
}
Or if you want to redirect http://video.abc.com/foo to http://www.abc.com/video/foo
when HTTP_REQUEST {
if {[HTTP::host] equals "video.abc.com"} {
HTTP::redirect "http://www.abc.com/video[HTTP::uri]"
}
}
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