Forum Discussion
Brent_Sachnoff_
Nimbostratus
Dec 13, 2006Serverside redirects
Our network setup consists of a F5 and 3 web servers all in the same pool. We terminate SSL on the F5 which means we are just doing http on the serverside. We recently started to do server side redi...
Deb_Allen_18
Dec 13, 2006Historic F5 Account
The server-generated redirect URI is contained in a server response header, so rather than using [HTTP::uri], you can use [HTTP::header] to catch and manipulate the Location: header within the HTTP_RESPONSE event:
when HTTP_RESPONSE {
if { [HTTP::header exists Location] }{
set myNewRedirect
HTTP::header replace Location $myNewRedirect
}
}However, you might want to experiment with a persistence profile instead of an iRule to solve the problem. Persistence is easy to implement. Cookie persistence is low overhead, and would work if redirects are to the same server name.
HTH
/debRecent 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