Forum Discussion
fcocquyt_104704
Nimbostratus
Jul 11, 2013Redirect HTTPS URL
Hello,
Is is possible to redirect an HTTP URL to another HTTPS url on F5 ?
Example, https://www.test1.com gets redirected to https://www.test2.com
As far I see, this is o...
nitass
Employee
Jul 11, 2013e.g.
[root@ve10:Active] config b virtual bar443 list
virtual bar443 {
destination 172.28.19.252:443
ip protocol 6
rules myrule
profiles {
clientssl {
clientside
}
http {}
tcp {}
}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [HTTP::host] eq "www.test1.com" and [HTTP::uri] eq "/" } {
HTTP::redirect "https://www.test2.com"
}
}
}
[root@ve10:Active] config curl -Ik https://www.test1.com
HTTP/1.0 302 Found
Location: https://www.test2.com
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
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