Skuba_85554
Oct 13, 2010Nimbostratus
is this line correct?!
hi everyone
could you confirm whether line 2 is correct? it only used to contain "www.abc.com" but i've added the "or" statement and i'm not sure if it's entirely correct...
---------------------------------------------
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] starts_with "www.abc.com" or "www.def.com"} {
if { [string tolower [HTTP::uri]] contains "secure" } {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
elseif { [matchclass [string tolower [HTTP::uri]] starts_with $::redirect_class] } {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
else {
use pool my_pool
}
}
else {
use pool my_pool
}
---------------------------------------------
thank you