Forum Discussion

fwadmin's avatar
fwadmin
Icon for Altostratus rankAltostratus
2 years ago
Solved

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

No RepliesBe the first to reply