Thomson_Thomas
Sep 21, 2020Cirrus
this seems simple enough but broke my site when i applied it, all https stopped working and i get page cant be displayed. my irule is as follows:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] starts_with "www.jarvis"} {
#HTTP::redirect "https://[findstr [string tolower [HTTP::host]] "www.jarvis" 4][HTTP::uri]"
HTTP::redirect "http://[string range [HTTP::host] 4 end][HTTP::uri]"
} else {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}