Forum Discussion
Michael_Yates
Jun 08, 2010Nimbostratus
The first two seem to have blown up during the first post:
when HTTP_RESPONSE {
if { [HTTP::status] == "403" } {
HTTP::respond 200 Loccation "http://www.customerrorpage.com"
}
elseif { [HTTP::status] == "404" } {
HTTP::respond 200 Loccation "http://www.customerrorpage.com"
}
}
Rather than sending the status codes you can use a 301 redirect:
when HTTP_RESPONSE {
if { [HTTP::status] == "403" } {
HTTP::redirect "http://www.customerrorpage.com"
}
elseif { [HTTP::status] == "404" } {
HTTP::redirect "http://www.customerrorpage.com"
}
}