Forum Discussion
Ajit
Altostratus
Sep 25, 2015HTTP redirection irule
Hello Team,
I have created a VIP with IP address : 172.16.214.231. This is for a new website abc.com. The public to private natting happens on the firewall that sits before the F5. The DNS entry...
Michael_Jenkins
Cirrostratus
Sep 27, 2015You're iRule might look something like this:
when HTTP_REQUEST {
switch [string tolower "[HTTP::host][HTTP::uri]"] {
"abc.com/" -
"www.abc.com/" {
HTTP::redirect "/us/en/product-solutions/transportation/find-a-cellphone-pc.aspx"
return
}
}
}
The other option (if you're using v11.4 or greater) is Local Traffic Policies. Simple actions (including redirects) can be done there and may be simpler to configure if you're not used to iRules. This question has an example that might guide you in the right direction if you wanted to do it that way.
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