HTTPS to HTTPS redirection

How to do redirection from HTTPS to HTTPS in F5 LTM 10.2.4

Did you mean to say HTTPS to HTTPS? Can you clarify your question a little bit more to give a better context? Thanks!

Hi,

I don’t understand your question. I think you want to do HTTP to HTTPS redirection ?

Romain

when HTTP_REQUEST {
set my_loc "https://[HTTP::host][HTTP::uri]"
TCP::respond "HTTP/1.1 301 Moved Permanently\r\nLocation: $my_loc\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"
TCP::close
}
when HTTP_REQUEST {
set my_loc "https://[HTTP::host][HTTP::uri]"
TCP::respond "HTTP/1.1 301 Moved Permanently\r\nLocation: $my_loc\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"
TCP::close
}

Hi Romain , I want to know is it possible to do redirection from https:// to https://

Thanks Brad But i want to know the redirection between HTTPS:// to HTTPS://

Thanks Brad But i want to know the redirection between HTTPS:// to HTTPS://

you just use https HTTP::redirect command. HTTP::redirect DevCentral e.g. HTTP::redirect “https://www.google.com”

you just use https HTTP::redirect command. HTTP::redirect F5 Cloud Docs e.g. HTTP::redirect “https://www.google.com”