Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Redirect all IE users to a new page

My programmer is on vacation so I need your help! I discovered a page that has a bug for IE users. I want to redirect all IE users to a different page.

How can I do this? I searched all through Google and Stackoverflow and cannot find an answer. (I found some scripts, and tried them, but none worked).

like image 410
Gregg Avatar asked Oct 03 '11 16:10

Gregg


People also ask

How do I automatically redirect a website Internet Explorer browser to Chrome?

Click on Start, type the "default app settings" and change the default browser to chrome. Show activity on this post. I think the best solution is to let the user open Google Chrome manually by informing about it. Show activity on this post.

How do I redirect to Internet Explorer edge?

You can access this setting by going to the edge://settings/defaultbrowser URL. If you don't configure this policy or set it to "Sitelist", Internet Explorer will redirect incompatible sites to Microsoft Edge. This is the default behavior.

Is Internet Explorer going away?

After 25+ years of helping people use and experience the web, Internet Explorer (IE) is officially retired and out of support as of today, June 15, 2022.


2 Answers

Try:

<!--[if IE]>
<script type="text/javascript">
window.location = "http://www.google.com/";
</script>
<![endif]-->
like image 127
Ayman Safadi Avatar answered Sep 20 '22 17:09

Ayman Safadi


Or, a non-JS solution, put the following in your head section:

<!--[if IE]>
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.google.com">
<![endif]-->
like image 45
ChrisW Avatar answered Sep 18 '22 17:09

ChrisW