cymru81
Sep 17, 2021Altocumulus
https non www redirect
Hi, im trying to use an irule to direct traffic from https://example.com to https://www.example.com, im using the following but it just wont work! Any suggestions appreciated!
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "example.com"} {
HTTP::respond 301 Location "https://www.[HTTP::host][HTTP::uri]"
}}