Redirect HTTP to HTTPS and maintain original URL
in aFleX
Posted by kberton
If you have a need to redirect all incoming HTTP requests to a Vport to HTTPS *and* also maintain the original URL info, then it can be done easily using aFlex.
#redirect to HTTPS
#maintain original host and uri
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
If you have a need to redirect all incoming HTTP requests to a Vport to HTTPS *and* also maintain the original URL info, then it can be done easily using aFlex.
#redirect to HTTPS
#maintain original host and uri
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
0
Comments
#redirect to HTTPS
#maintain original host and uri
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
Genard