我已经做了jQuery Mobile的应用程序。现在,我要运行的URL中唯一的移动设备和桌面设备都穿上鞋子假的。
I have done a jquery mobile application. Now i want to run the url in mobile device only and desktop device are shoeing false.
在很长一段时间我试图在应用程序文件夹中的htaccess文件,其中的index.html是存在的。
After a long time i am trying the htaccess file in application folder where the index.html is there.
我的htaccess文件是
mY htaccess file is
RewriteCond %{REQUEST_URI} !^/http://originalsite.com/.*$
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteRule ^(.*)$ /http://www.othersite.com/ [L,R=302]
现在我不能让我的网站的效果。
NOW I can not get the effect in my site.
有什么我错过了吗?
试着用这些行:
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteRule ^(.*)$ http://www.othersite.com [L,R=302]
上一篇:重定向老网域通过的.htaccess新域名重定向、新域名、老网域、htaccess
下一篇:清洁的.htaccess URL超过3 paramenters清洁、htaccess、paramenters、URL