Forum Discussion
What_Lies_Bene1
Sep 28, 2012Cirrostratus
So, like this, I don't think the curved brackets are needed either btw;
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/site1" } {
HTTP::respond 301 Location "https://www.abc.com[HTTP::uri]"
}
elseif { [string tolower [HTTP::uri]] starts_with "/site2" } {
HTTP::respond 301 Location "https://www.abc.com[HTTP::uri]"
}
}