不废话,直接上代码:
RewriteEngine On RewriteBase / RewriteCond %{HTTP_USER_AGENT} ".*MSIE 7\.0.*" [OR] RewriteRule ^(.*)$ http://www.qhdtdhd.com/$1 [L,R=301] RewriteCond %{HTTP_USER_AGENT} ".*MSIE 6\.0.*" [OR] RewriteRule ^(.*)$ http://www.qhdtdhd.com/$1 [L,R=301] RewriteCond %{HTTP_USER_AGENT} ".*MSIE 8\.0.*" [OR] RewriteRule ^(.*)$ http://www.qhdtdhd.com/$1 [L,R=301] RewriteCond %{HTTP_USER_AGENT} ".*MSIE 9\.0.*" [OR] RewriteRule ^(.*)$ http://www.qhdtdhd.com/$1 [L,R=301] RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
按浏览器将访客 IE7 IE8 IE9跳转到http://www.qhdtdhd.com/
最新评论