For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Adam_86377's avatar
Adam_86377
Icon for Nimbostratus rankNimbostratus
Mar 27, 2014

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's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    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

     

  • 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.

     

  • 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

     

  • 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's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    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]