Forum Discussion
Rene_C_
Nimbostratus
Well,
the short answer: yes, the F5 can handle it.
the longer answer: Do you want to just redirect any requests from http[s]://example.com/ to https://example.com/example1/example.htm? Or just specific ones?
If you want all requests redirected: Usually you have a virtual-server for http and another one for https.
For the virtual-server for http you could add a new irule containing:
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
for the virtual-server for https, you could add something like that:
when HTTP_REQUEST {
if { [HTTP::uri] eq "/" } {
HTTP::redirect "/example1/example.htm"
}
}
(Untested, but i guess you get the point)
Rene_C_
Feb 26, 2014Nimbostratus
If you assign the first rule to the http - virtuals and the second one to the https-virtuals, this should do what you want.