Forum Discussion
Ajit
Altostratus
Apr 07, 2014irule to change the host header of a URL
Hi All,
I am a beginner in irules and hence need your help with this one.
I want to create an iRule for a VIP / VS that will redirect any url with "beta" as the host to the same url path but with "www" as the host.
Thanks in advance !
1 Reply
- JRahm
Admin
for a redirect, that would be doable with something like this (assuming beta.domain.com):
when HTTP_REQUEST { if { [HTTP::host] starts_with "beta" } { HTTP::redirect "http://www.[domain [HTTP::host] 2]" } }
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