Dayton_Gray_103
Oct 29, 2008Nimbostratus
Custom 404 passthrough question.
I have the following iRule in place:
when HTTP_REQUEST {
if { [HTTP::uri] contains "pagenotfound.html" } {
event disable all
}
}
when HTTP_RESPONSE {
if { [HTTP::status] == "404" or [HTTP::status] == "500" }{
HTTP::redirect "http://www.yournamehere.com/error/pagenotfound.html"
}
}
I am hoping it is possible to modify this to keep the original URL but send back the pagenotfound.html content, similar to a passthrough directive on apache. Is this at all possible?
Thanks!