Streaming live at 10am (PST)

Redirect users of Internet Explorer to a specific page

Hi Guys,

is there the possibility to simply check the current browser of the user and redirect him internally to another page if it’s the Internet Explorer?

Instead of reworking the whole Website we thought about making a little internal page with more information about why the page isnt supported fully with the IE.

Thank you very much!

Its my first time posting in the forum - can’t believe that it took me so long :smiley:

hello @Bertschko,

you could try this snipet, see if that works for you.

<!--[if IE]>
  <script>
    window.location = "https://www.yourotherpage.com/";
  </script>
<![endif]--> 

Hope that helps.

This doesn’t work for ie10 & 11 apparently. I was going to use the below to target ie 10/11.

<style>

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .ie-content {
  display: block;
  }
   .content-1 {
   display: none;
  }
}
</style>

demo : https://preview.webflow.com/preview/ie-only-media-query?utm_medium=preview_link&utm_source=designer&utm_content=ie-only-media-query&preview=3268a3e7a559669755f4bcfb9ff37cfa&mode=preview

Edit: so consider showing and hiding content with CSS as opposed to redirecting user to a page

1 Like

@HammerOz

Thank you! This would mean that I have to create different elements for the IE and let them be visible if someone uses IE.

@anthonysalamin Thank you! Will try that right away

Yes mate. Or the other approach would be to use the same principal to change the display property of the elements to something ie supports. So for example set to flexbox instead of grid if ie. I don’t know what others are doing other than avoiding CSS Grid altogether. I know I have as I have one site with 15% of traffic ie11 :grimacing: