Forum Discussion
Kevin_Stewart
Dec 01, 2016Employee
Right. I forgot to add the Location header:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/abc/efg" } {
set newuri [string map -nocase {"/abc/efg" "/123/456"} [HTTP::uri]]
HTTP::respond 301 Location "https://tuv.com${newuri}"
}
}