I’m working on a SharePoint 2013 instance and have ran into a problem with redirecting 80 to 443. If I use firefox or chrome, the website works as expected. The request coming in on port 80 is redirected to https on port 443. However, if I am using Internet Explorer, the redirection does not work. I have attempted to use many variations of iRules that have always worked previously but seem to have hit the wall a bit and wanted to ask the group.
Has anyone else had problems with IE redirection on the F5?
version 11.3
A few of the iRules I have attempted unsuccessfully
when HTTP_REQUEST {
set host [HTTP::host]
HTTP::respond 302 Location "https://[HTTP::host][HTTP::uri]"
}
and
when HTTP_REQUEST {
set host [HTTP::host]
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
Adam, I haven’t seen anything like this before (not that I can recall anyway). Just wondering why you are setting the host variable but not using it? Is that because this is part of a bigger iRule?
Anyway, that aside the redirect should work. If you haven’t already I’d load the Fiddler add on to IE and see if anything in the http logs gives you clues on why it’s failing.
It was a copy + paste redirection iRule that I was using is the only reason I set the host var. I will look into fiddler. It’s strange because it continues to stick with http:// regardless of what I do in the iRule. Other browsers on the same system work fine.