Forum Discussion
GeorgeA_32263
Nimbostratus
Apr 14, 2014Redirect URI AND send client browser a custom message
Hello, I have a simple IRule that redirects the URI to a new location. In addition to this, I now want to send an informational message to the client’s browser after the redirect. The message should ...
GeorgeA_32263
Nimbostratus
Apr 16, 2014Sorry; I moved too quickly. Tested the syntax below. The result is:, the browser displays the message "please bookmark the next page" with no problems. don't need the html code. However the execution stops there. the next procedure; to redirect to http://www.mywebsite.com/newresources/todaysnews does not execute. Is it supposed to go to the next line of code after the "return" and execute the redirect or is something missing?
when HTTP_REQUEST { if { [HTTP::uri] contains "resources"} {
HTTP::respond 200 content { Please bookmark the next page} return }{HTTP::redirect "http://www.mywebsite.com/newresources/todaysnews/" }}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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