Forum Discussion
Allan_66523
Oct 31, 2011Nimbostratus
Requests to http changed to https
I am looking to add an Irule to a certain VIP of ours that change HTTP requests to HTTPS.
Thanks,
- ngaze_66812NimbostratusThe one we use, which I think is pretty standard, looks like this:
- nitassEmployeejust in case you would like to use built-in feature.
- ArieAltostratusInstead of HTTP::redirect (which generates a 302 - Temporary Redirect) you may want to consider:
HTTP::respond 301 Location "https://[HTTP::host][HTTP:uri]"
That way the client will cache the redirect and save you a few cycles.
Also, keep in mind that you can issue only one HTTP::respond/HTTP::redirect; you'll encounter a nasty "connection reset" if multiple respond/redirects are issued.
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