Htaccess File

dev-tatematsu/la-michelle/master/hiroshimarabuhocom/.htaccess

HTTP_USER_AGENT
RewriteEngine Off
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod|Android|BlackBerry)
RewriteRule ^$ iphone/redirect.php?f=index.html [L]
RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod|Android|BlackBerry)
RewriteRule ^(.*).html iphone/redirect.php?f=$1.html [L]
RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod|Android|BlackBerry)
RewriteRule ^(.*).css iphone/$1.css [L]
RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod|Android|BlackBerry)
RewriteRule ^img/(.*) iphone/img/$1 [L]
RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod|Android|BlackBerry)
RewriteRule ^(.*)/ iphone/redirect.php?f=$1/index.html [L]
RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod|Android|BlackBerry)
RewriteRule ^(.*) iphone/$1 [L]

RewriteCond %{HTTP_USER_AGENT} ^(DoCoMo|KDDI|UP.Browser|J-PHONE|Vodafone|SoftBank|Samsung)
RewriteRule ^$ m/redirect.php?f=index.html [L]
RewriteCond %{HTTP_USER_AGENT} ^(DoCoMo|KDDI|UP.Browser|J-PHONE|Vodafone|SoftBank|Samsung)
RewriteRule ^(.*).html m/redirect.php?f=$1.html [L]
RewriteCond %{HTTP_USER_AGENT} ^(DoCoMo|KDDI|UP.Browser|J-PHONE|Vodafone|SoftBank|Samsung)
RewriteRule ^img/(.*) m/img/$1 [L]
RewriteCond %{HTTP_USER_AGENT} ^(DoCoMo|KDDI|UP.Browser|J-PHONE|Vodafone|SoftBank|Samsung)
RewriteRule ^(.*)/ m/redirect.php?f=$1/index.html [L]
Exit mobile version