Forum Discussion
BinaryCanary_19
Oct 16, 2013Historic F5 Account
Creating A Redirect with Local Traffic Policies v11.4
This is not a question, I'm just putting this out here to help people who have run into this problem.
Before 11.4, you could easily redirect from HTTP to HTTPS using HTTP Classes. In 11.4, HTTP Cl...
Kevin_Davies_40
Nacreous
Jan 23, 2014If you want finer grained control attach the following iRule.
when HTTP_REQUEST {
HTTP::respond 301 Location "https://[getfield [HTTP::host] ":" 1][HTTP::uri]" Connection Close
}
You can add headers after connection close just keep adding them as header name, a space, header value etc....
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