将IE8用户重定向到另一个页面 [英] Redirect IE8 users to another page
本文介绍了将IE8用户重定向到另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Wordpress实现一个网站,但我的网站在Internet Explorer 8中不受支持。
I am implementing a website with Wordpress, but my website is not supported in Internet Explorer 8.
我是否可以使用任何代码,以便任何IE8用户都能使用被重定向到另一个页面?
Is there any code I can use so that any IE8 users will be redirected to another page?
推荐答案
我知道你指定了PHP,但这是一个HTML / JS解决方案:
I know you specified PHP, but here's a HTML/JS solution:
<!--[if IE]>
<script type="text/javascript">
window.location = "http://www.google.com/";
</script>
<![endif]-->
取自此答案。
如果您只是想重定向IE 8 用户,请更改< ! - [if IE]>
to <! - [if IE 8]>
。
If you specifically only want to redirect IE 8 users, change <!--[if IE]>
to <!--[if IE 8]>
.
这篇关于将IE8用户重定向到另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文