Nov 06, 2010
404 status issue
Hello All,
I'm curious as this is weird behavior I've encountered with this set of code:
when HTTP_RESPONSE {
if { ([HTTP::status] equals "404") } {
if a 404 is return, then do a 301 redirect to our custom 404 page
HTTP::respond 301 Location "http:[HTTP::host]/portal/site/erp/404/"
return
}
}
Problem: If the page returns a 200 but there is a missing image, the redirect will take place. I was under the impression that the whole page has to returned 404 before to set the "HTTP::status" to true. Is that correct or am I missing something?
Any clarification is fully appreciated.
Thanks.
Regards,
TX