Forum Discussion
benbenben_9082
Nimbostratus
Mar 07, 2007Redirects + keeping headers
What I am trying to do may seem a little weird...
Basically I am trying to capture the URL a client is visiting into a header which works fine. I then need to redirect the client to a speci...
hoolio
Cirrostratus
Mar 07, 2007Hi,
You can use HTTP::respond to include a header name and value in the redirect:
HTTP::respond 302 Location http://www.example.com/ Header_Name Header_Value
So:
when HTTP_REQUEST {
if {$some_condition==1}{
HTTP::respond 302 Location http://www.example.com/ test_header_name "[HTTP::host][HTTP::uri]"
}
}
Aaron
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