Forum Discussion
Rhys_Davis_2151
Aug 11, 2015Nimbostratus
3 part redirect irule query. non www to www to https
Hello All
We recently moved over to F5's from another load balancer product and have been gradually moving our staging and live services over after testing has been completed. However one issue has...
Arie
Aug 13, 2015Altostratus
If you always want to redirect from HTTP to HTTPS I would recommend using a 301 (permanent redirect) as opposed to the 302 (temporary redirect) that is generated by
HTTP::redirect
. A permanent redirect is cached by clients so it saves on HTTP-requests.
You accomplish this by replacing
HTTP::redirect "https://www.sharepointsite.com[HTTP::uri]"
with HTTP::respond 301 Location "https://www.sharepointsite.com[HTTP::uri]"
.
You can further optimize by using HSTS, which instructs clients to use HTTPS for subsequent requests even if the link specifies HTTP.
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