How to redirect all IE8 users to a specific URL?

How to redirect all IE8 users to a specific URL? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the How to redirect all IE8 users to a specific URL? error on your web browser. Problem :


I have W2008 running IIS and have about 20 websites (all PHP, about half are WP) running on it.



Currently I have this in the header on a few sites and it is working. But it is getting hard to manage because even though I am the admin there are a lot of developers and they could overwrite the header if they wanted on most sites.



<!--[if IE 8]>
<script type="text/javascript">
window.location = "http://example.com/wedontsupportIE8.html";
</script>
<![endif]-->


Is there a way to set up a rule on the server that would have the same functionality?



Current rule I have tried:



I have added rules on web server and they basically don't work right. I had the redirect to /home/index.php already working for the past 6 months. When I add the new rule first it does the following:




  • in IE8 - 404 error for any directory on site and it reverts to the root

  • in IE10, FF, Chrome, Safari - it just redirects to /home as it should.



webconfig below



<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="IE8rewriteall" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="HTTP_USER_AGENT" pattern="*MSIE*" />
</conditions>
<action type="Rewrite" url="http://example.com/ie/index.html" />
</rule>
<rule name="Root Hit Redirect" stopProcessing="true">
<match url="^$" />
<action type="Redirect" url="/home/index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Solution :

Here you go.... this should work:



<rule name="IE8FacePalm" stopProcessing="true">
<match url="" ignoreCase=""true"" />We hope that this article has helped you resolve the , , error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

Redirected urls show in serp, with the original permalink but with the title and meta of the target page

How can I redirect everything but the index as 410?

How do I redirect traffic only if being accessed from a specific port?