Forum Discussion
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"
}
}
}