我怎样才能阻止我的.htaccess文件重定向iPad用户到我的移动网站? [英] How can I stop my .htaccess file redirecting iPad users to my mobile site?
本文介绍了我怎样才能阻止我的.htaccess文件重定向iPad用户到我的移动网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的.htaccess文件我目前有:
I my .htaccess file I currently have:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} "smartphone|rover|ipaq|au-mic,|alcatel|ericy|vodafone\/|wap1\.|wap2\.|iPhone|android"[NC]
RewriteCond %{REQUEST_URI} !^/m/
RewriteRule ^.*$ http://www.mydomain.com/m/$0 [R=301,L]
当一个人带一台iPad,他登录/她被重定向= /移动版本。我希望他们能够看到正常的网站(不 / M /
)。
When someone logs in with an iPad he/she gets redirected =/ to the mobile version as well. I'd like them to see the normal site (without the /m/
).
推荐答案
添加另一个
RewriteCond %{HTTP_USER_AGENT} "iPad"[NC]
RewriteCond %{REQUEST_URI} !^/
RewriteRule ^.*$ http://www.mydomain.com/$0 [R=301,L]
这篇关于我怎样才能阻止我的.htaccess文件重定向iPad用户到我的移动网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文