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 15, 2014IheartF5:
Thank you helping me. It's greatly appreciated. Am I understanding the 200 code option correctly? The LTM will be returning the message "Please bookmark the next page", and not the IIS server? After the message is delived to the client browser, I must add the syntax to then redirect the client using the syntax below. Is the logic correct? Is the syntax correct?
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