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...
Rhys_Davis_2151
Aug 12, 2015Nimbostratus
OK been some slight developments from the original request and after some reading around...... now have it setup as follows
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] starts_with "http://sharepointsite.com" } {
HTTP::redirect "https://www.sharepointsite.com[HTTP::uri]"
}
}
which should take all the url and redirect it to https and then include all the bits after .com/
I also need to do the same for https so I'm guessing I want
when HTTPS_REQUEST {
if { [string tolower [HTTP::host]] starts_with "https://sharepointsite.com" } {
HTTP::redirect "https://www.sharepointsite.com[HTTP::uri]"
}
}
Does that look right to you all? also will these need to be separate irules or can they be lumped into one?
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