2つのバージョンのサイトを作成した場合、通常のものとサーバー上の「モバイル」というフォルダにあるものは、どのようにしてモバイルデバイスをリッスンし、ユーザーをモバイルフォルダに誘導できますか?jQuery Mobile with ZendFramework
0
A
答えて
0
ランディングページはdetectにリダイレクトする必要があります。あなたはそれが好ましい方法であるとして、ほとんどのモバイルデバイスは、JavaScriptを無効にすることができますので、あなたは、そこにあなたのリダイレクトを行うことができ、サーバサイド技術を使用している場合
// note this regex is probably **not** the
// best one to use for mobile user agent detection
if(navigator.userAgent.match(/ios|android|windows phone/)) {
window.location = 'http://mysite.com/mobile';
}
:JavaScriptを使用して、これは同じように簡単に行うことができます。たとえば、Apacheでこれを行う方法については、answer hereを参照してください。
関連する問題
- 1. jQuery mobile with ajax
- 2. Angular.js with jQuery Mobile
- 3. URL with Jquery Mobile
- 4. jQuery Mobile List with Search
- 5. jQuery Mobile with ui.layout jqueryプラグイン
- 6. jQuery Mobile with my Contact Form
- 7. iOS/mobile detection with devise
- 8. jquery mobile data-icon
- 9. jQuery Mobile&TouchSwipe jQueryプラグインエラー
- 10. ZendFrameworkモジュール
- 11. jQuery Mobile + Twitter oAuth
- 12. jQuery mobile/uiシンプルインポート
- 13. jQuery Mobileのメニューグリッド
- 14. jQuery MobileチェックボックスCSS
- 15. Googleマップ - jQuery Mobile
- 16. JQuery Mobile Mysqlデータベースフィルタシステム
- 17. jQuery Mobile + Admob:rotation?
- 18. Jquery mobile animations
- 19. Jquery mobile styling issue
- 20. jquery mobileチェックボックス
- 21. Jquery Mobile - プレスイベントで?
- 22. Jquery Mobile onSearchイベントハンドラ
- 23. jquery mobile + phonegap onclick
- 24. JQuery-mobile検証!
- 25. Jquery Mobileダイアログ
- 26. Jquery Mobileネストリスト
- 27. jquery mobileラジオボタンアイコン
- 28. jQuery Mobileのカスタムテーマヘッダーバー
- 29. jquery mobile dateboxカスタムアラインメント
- 30. PhoneGap + jQuery Mobile + cakePHP
重複するhttp://stackoverflow.com/questions/4483180/how-to-rewrite-to-mobile-myurl-com-if-user-is-mobile-use-apache-or-inside-weba – mkoistinen
多くウェブサイトはHTML.chromeのクラスとしてブラウザ名を設定していますが、デフォルトではhtmlタグにchromeクラスがあります。流体レイアウトを作成するためのクラスを設定することができます。また、ブラウザやデバイスから作成されたrequest-headerからサーバー側のリダイレクトを使用することもできます。 – Chinook