dan_6764
Jan 13, 2009Nimbostratus
HTTP redirect maintaining original URL
Hi,
I have a simple irule that works fine for what I need. A request comes in (say to www.mypage.co.uk), if the LB pool has no active nodes the client request is redirected to a " sorry" page.
when LB_FAILED {
HTTP::respond 302 Location "http://mypage.co.uk/sorry/"
}
What I would like is to perform the above but retaian the original URL " www.mypage.co.uk "
I have tried the below but it does not work.
when LB_FAILED {
HTTP::header replace Host "http://ctradetest.costcutter.com"
HTTP::respond 302 Location "http://csalestest.costcutter.com/sorry/"
}
Any ideas???
Thanks
Dan