ytftianwen/web/master/.htaccess - Htaccess File

ytftianwen/web/master/.htaccess

RewriteEngine on
RewriteCond $1 !^(index.php|img|js|styles|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
# mobile site redirection
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
RewriteRule ^$ http://m.jianjist.com/ [L,R=302]

On Github License

Files

Download PDF of Htaccess file
HTTP_USER_AGENT, REQUEST_FILENAME

Comments

Apache