Forum Discussion
Misbah_Ul_Haq_3
Jan 31, 2018Nimbostratus
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_Piro2Jan 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" } }
- Misbah_Ul_Haq_3Feb 01, 2018Nimbostratus
Dear All,
Stanislas Piron, Prince and Niels van Sluis you all are great. My issue resolved with your help.
"siebel.misali.local" has successfully redirected to ";
Thanks a Million.