2012-03-17 12 views
0

jqueryモバイルアプリケーションを作成しました。今、私はモバイルデバイスでのみURLを実行したいとデスクトップデバイスは虚偽をshoeingている。モバイルアプリケーションのユーザーエージェントhtaccessファイル

私は、htaccessファイルをindex.htmlがあるアプリケーションフォルダで試しています。

、私のhtaccessファイルは、今私は自分のサイトで効果を得ることができない

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] 

です。

ここには何かがありますか?

答えて

0

これらの行で試してみてください:

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] 
関連する問題