Mike_Wethington
Aug 27, 2009Nimbostratus
301 Redirect
We are moving our datacenter from one location "A" to another location "B". I need to do a 301 redirect from "A" to "B" for all traffic. The URL is staying the same the only thing changing is the IP address. I have tried the irule below but I get a page cannot be found error instead of the page. I used wire shark to trap the packets and the server responds with the permanetly moved 301. Both site "A" and "B" are behing big-ip's Can anyone help me with this?
when HTTP_REQUEST {
HTTP::respond 301 "192.168.1.1" "http://[HTTP::host][HTTP::uri]"
}