Forum Discussion
IE 10 ignoring HTTP::redirect iRule
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]
}
both seem to work with browsers other than IE 10.
5 Replies
- nathe
Cirrocumulus
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.
Sorry I couldn't give you anything specific.
N
- Adam_86377
Nimbostratus
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.
- Cory_50405
Noctilucent
Unsure if this is it, but there's a known issue in IE 10 regarding redirects, among other things:
http://stackoverflow.com/questions/12586415/ie-10-redirect-url-is-broken
- Adam_86377
Nimbostratus
This was sent to my by one of our developers. I have not had a chance to have the workaround tested yet.
http://stackoverflow.com/questions/6983732/ie10-user-agent-causes-asp-net-to-not-send-back-set-cookie-ie10-not-setting-coo
- JG
Cumulonimbus
You may want to clear the cache in your browser before trying.
And I can't see why you need this:
set host [HTTP::host]
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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