携帯電話のキャリア別にホームページを構築する方法

携帯電話用ホームページを作成する場合、キャリアごとにホームページを作成するか、最大公約数的にどのキャリアの携帯で閲覧しても大丈夫なWebサイトを構築するかで迷っていませんか?

htaccsessって方法もあることを本日悟る。

分岐用CGI導入しなくてもいいんじゃねかな?

携帯電話を専用ページで飛ばしたい。この場合はHTTP_USER_AGENTで書くページに飛ばせばいいだろう。

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} DoCoMo [OR]
RewriteCond %{HTTP_USER_AGENT} J-PHONE [OR]
RewriteCond %{HTTP_USER_AGENT} UP\.Browser
RewriteRule ^/$ i/index.html [L]

引用元
http://nai.homelinux.net/apache_rewrite.html

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny