Forum Discussion
Tyson_James
Jun 05, 2020Cirrus
Redirect to another URL after timeout detected
Is there a way for a BIG-IP to display a message such as “This site has moved, please note the new URL." and then redirect to the new page in 10 seconds.
jaikumar_f5
Dec 23, 2020MVP
Yes its doable, I've done some recently too. But I used the Ifile method, but the concept is same,
Create an Ifile with below content,
<html>
<head>
<meta http-equiv="Refresh" content="10; url=https://www.newwebsite.com" />
</head>
<body><p><center>This URL is being retired. You are being redirected to new site -<a href="https://www.newwebsite.com">New Website name</a>.</center></p>
</body>
</html>
Then load that ifile in Irule,
when HTTP_REQUEST {
if { [HTTP::uri] equals "/index.html"}{
HTTP::respond 200 content [ifile get "new-website.html"] "Content-Type" "text/html"
}
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects