Forum Discussion
Ranvir_Floura_7
Nimbostratus
Jan 27, 2007iRule for uri redirection
Hey Gang,
I would like to get some help in creating a iRule to redirect based on uri.
1. Any traffic coming to http://abc.com need to go to https://xyz.com
2. Any traffic coming to...
Jan 27, 2007
This should handle 1 and 2.
when HTTP_REQUEST {
if { [HTTP::host] equals "abc.com" } {
HTTP::redirect "https://xyz.com[HTTP::uri]"
}
}
Apply this to your HTTP virtual handling the abc.com domain and you should be set.
-Joe
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