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 http://video.abc.com to http://www.abc.com/video
- Stanislas_Piro2
Cumulonimbus
Hi,
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]" } }
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