Forum Discussion
iRule HTML Maintenance Page insert URI Value
Looking for help writing an iRule that will display, in HTML code, that the page being access has been changed. I'm trying to figure out how to referece the requested URI in HTML since this will vary. Below is what I have for now. Any help is appriciated.
when HTTP_REQUEST {
HTTP::respond 200 content {
<html>
<head>
<title> This Page Has Moved </title>
</head>
<body>
<b> This Page Has Moved </b>
Links and bookmarks to example.com should be updated to example.new.com
The page you requested has moved to https://example.com/<HTTP::uri>
</body>
</html>
}
}
__PRESENT
__PRESENT
__PRESENT
__PRESENT
__PRESENT
7 Replies
Recent Discussions
* 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