Forum Discussion
HTTP/HTTPS redirect
Hi,
You can use the following irule :
when HTTP_REQUEST {
if { [HTTP::host] eq "xyz.com" } {
HTTP::respond 302 Location "http://abc.com[HTTP::uri]" Connection Close
}
}
You can also use LTM policies instead of irules. It does works for both irule and LTM policy if you have a Standard Virtual Server with http profile associated.
If you have an https website, you need to offload SSL on the Virtual Server by adding a clientssl profile.
- rdayal_280549Jul 20, 2016
Nimbostratus
Thank Yann,
Does this irule sill work if abc.com is on different network (Internet)?
Thank You
- boneyardJul 20, 2016
MVP
it doesn't matter where it is, it is just being send to the client as text, as long as the client can resolve it with DNS it will work.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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