携帯用リダイレクト設定
# for DoCoMo BrowserMatch "DoCoMo" mobilephone # for KDDI BrowserMatch "KDDI" mobilephone BrowserMatch "UP.Browser" mobilephone # for SoftBank BrowserMatch "J-PHONE" mobilephone BrowserMatch "Vodafone" mobilephone BrowserMatch "SoftBank" mobilephone BrowserMatch "MOT" mobilephone #RewriteRule ^/index.html$ http://www.sample.com/indexm.html env=mobilephone #RewriteRule ^/$ http://www.sample.com/indexm.html env=mobilephone RewriteCond %{ENV:mobilephone} . RewriteRule ^/index.html$ http://www.sample.com/i/index.html [L,R] RewriteCond %{ENV:mobilephone} . RewriteRule ^/$ http://www.sample.com/i/index.html [L,R]
追記
#apachectl configtest で OK になるようですが
RewriteRule で env=mobilephone のような書き方はだめでした。