Forum Discussion
Mike_Wethington
Nimbostratus
Oct 08, 2007Redirecting HTTPS traffic to HTTP
I need to redirect HTTPS traffic to HTTP and only for a specific user agent using a 301 and preserving the URI. Can anyone help?
Deb_Allen_18
Oct 09, 2007Historic F5 Account
Yes, as long as it is applied to the HTTPS virtual server and the LTM is decrypting the traffic.
Although if you want a 301, you'll have to use the HTTP::respond command instead of the HTTP::redirect command which sends a 302:
when HTTP_REQUEST {
if [HTTP::header "User-Agent"] starts_with "ua_text"
HTTP::respond 301 "Location" "http://[getfield [HTTP::host] : 1][HTTP::uri]"
} else {
pool myPool
}
}HTH/deb
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