Forum Discussion
Misbah_Ul_Haq_3
Nimbostratus
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "http://siebel.misali.local"} {
HTTP::redirect "http://testing.misali.local"
}
}
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "http://siebel.misali.local"} {
HTTP::respond 301 Location "http://testing.misali.local"
}
}
Stanislas_Piro2
Jan 31, 2018Cumulonimbus
Hi,
Both Niels and prince provide you the solution but you still keep http:// in the condition.
Http Host never contains http://Try this
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "siebel.misali.local"} {
HTTP::respond 301 Location "http://testing.misali.local"
}
}