Forum Discussion
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?