_.htaccess
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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://*******/