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 ...
IheartF5_45022
Nacreous
Apr 15, 2014What you are asking for is possible - you need to return (or redirect to) a page which will display your message then redirect to the target page. You web developers should be able to help you with the contents of this page but it would be something along these lines;-
if { [HTTP::uri] contains "resources"} {
HTTP::respond 200 content { Please bookmark the next page}
return
}
Alternatively just use a 301 redirect to the target page which will not show the user a message but should get cached in the users browser. This may be preferable in some ways;-
if { [HTTP::uri] contains "resources"} {
HTTP::respond 301 Location "http://www.mywebsite.com/newresources/todaysnews/"
return
}
IheartF5_45022
Nacreous
Apr 16, 2014Doh!! How do I avoid the filter?
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