Forum Discussion
youssef1
Sep 02, 2018Cumulonimbus
Hi,
remove ;;. try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/robots.ext" } {
HTTP::redirect "https://www.test.com"
}
}
or
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/robots." } {
HTTP::redirect "https://www.test.com"
}
}
It will work for sure.
Regards,