Redirect a VS via irule
We are running a Bigip v11.4.1 build 647.0
I would like to redirect a VS that we have on our F5 to a different url. For example, the user points their browser to www.school.com. The VS that corresponds to www.school.com has an irule assigned to it. I would like the irule to put up a quick informational web page that says that they are being redirected to www.highschool.com because www.school.com has been retired. The informational page should wait a few seconds so they can read it (maybe 5 seconds), then redirect them to www.highschool.com. I tried the following irule, but it just redirects without showing them the informational web page:
when HTTP_REQUEST { set delay 5 HTTP::respond 200 content "https://www.highschool.com/> The Test site www.school.com has been retired. After 5 seconds, youll automatically be redirected to our new home page at www.highschool.com. " "Content-Type" "text/html" }
What am i doing wrong? Or is there a better way to do this on the F5?