ユーザ用ツール

ケータイからのアクセスを自動的にMT4iに導く

アクセスしてきたブラウザのHTTP_USER_AGENTをチェックして、適宜、MT4iへ、アクセスを振り分ける方法を書いておきます。

ここでは、Apachemod_rewriteを利用します。

らくがきの場合、次のような内容を .ht_access に追記します。このとき、MT4iへは /~araki/rakugaki/m/index.cgiでアクセスできるものとします。

ReadwriteEngine on
ReadwriteCond %{HTTP_USER_AGENT} DDIPOCKET [NC,OR]
ReadwriteCond %{HTTP_USER_AGENT} DoCoMo [NC]
ReadwriteBase /~araki/rakugaki
ReadwriteRule ^index.html$ m/ [L,R]

EZwebなどへも対応するには、ReadwriteCondを増やすことになります。

MovableTypeに関してに戻る。

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information