このページのスクリプトは、iPhoneとiPodのユーザーを別のサイトにリダイレクトすることに注意してください。それ以外のiPhone/iPodユーザーは別のサイトにリダイレクトされません。それが問題だった場合は、単に次のようにjavascriptのコードを変更:
if (!(navigator.userAgent.match(/iPhone/i)) && !(navigator.userAgent.match(/iPod/i))) {
location.replace("http://notiphoneoripod.yourdomain.com");
}
あなたは、同様のiPadをリダイレクトする代わりに、以下の変更を使用する必要がある場合:
また
if (!(navigator.userAgent.match(/iPhone/i)) && !(navigator.userAgent.match(/iPod/i)) && !(navigator.userAgent.match(/iPad/i))) {
location.replace("http://notiphoneoripodoripad.yourdomain.com");
}
を、あなたが使用している場合PHPなどのサーバー側プログラミング言語では、クライアント側のコードではなくリダイレクトを行う必要があります。 PHPで$ _SERVER ['HTTP_USER_AGENT']を使って確認できます。
それとも、Apacheを使用している場合、サーバー上で直接それをしたい場合は、.htaccessファイルに以下を追加することができます。これを行うには
RewriteCond %{HTTP_USER_AGENT} !^.*iPhone.*$
RewriteRule ^(.*)$ http://notiphone.yourdomain.com [R=301]