Sam_Parkes_1110
Dec 01, 2006Nimbostratus
404 redirect based on URI
Hi,
I'm having trouble getting this iRule to work, just needs a simple redirect if a 404 is received but only if a specific URI is requested, I'm pretty new to this so sorry if it simple. What am I doing wrong?:
when HTTP_REQUEST {
[HTTP::uri] contains "folder/folder2"
}
when HTTP_RESPONSE {
if { [HTTP::status] contains "404"} {
HTTP::redirect "http://www.mysite.com/"}
}
Thanks,