我想将访问主页的所有IE用户(但访问网站上的其他页面时)重定向到某个页面。我试图使用下面的代码,但它无法正常工作
RewriteCond %{HTTP_USER_AGENT} *MSIE* [NC,AND]
RewriteCond %{REQUEST_URI} ^/$
Rewriterule ^(.*)$ http://www.mywebsite.com/ie.html [L,R=301]
答案 0 :(得分:0)
我认为问题来自*MSIE*
应为.*MSIE.*
或类似:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} MSIE [NC]
RewriteRule ^$ /ie.html [R=301,L]