_.htaccess 1.01 KB
DirectoryIndex index.html index.phtml index.php index.cgi index.htm

AddType application/x-httpd-php .html .inc

<Files ~ "\.(dat|log|txt|count|inc)$">
deny from all
</Files>

php_flag short_open_tag Off

RewriteEngine On 

RewriteCond %{HTTP_USER_AGENT} iPod [NC]
RewriteRule ^$ http://*******/iphone/ [L]

RewriteCond %{HTTP_USER_AGENT} iPhone [NC]
RewriteRule ^$ http://*******/iphone/ [L]

RewriteCond %{HTTP_USER_AGENT} Android [NC]
RewriteRule ^$ http://*******/iphone/ [L]

RewriteCond %{HTTP_USER_AGENT} Wii [NC]
RewriteRule ^$ http://*******/wii/ [L]

RewriteCond %{HTTP_USER_AGENT} DoCoMo [NC]
RewriteRule ^$ http://*******/mobile/ [L]

RewriteCond %{HTTP_USER_AGENT} vodafone [NC]
RewriteRule ^$ http://*******/mobile/ [L]

RewriteCond %{HTTP_USER_AGENT} J-PHONE [NC]
RewriteRule ^$ http://*******/mobile/ [L]

RewriteCond %{HTTP_USER_AGENT} SoftBank [NC]
RewriteRule ^$ http://*******/mobile/ [L]

RewriteCond %{HTTP_USER_AGENT} Up.Browser [NC]
RewriteRule ^$ http://*******/mobile/ [L]


# ErrorDocument 404 http://*******/