rewriteEngine on
rewriteCond %{REQUEST_FILENAME} !-f
rewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php\/$1 [L]
图片防盗链
#防盗链
rewriteCond %{HTTP_REFERER} !^$ #来源不为空
rewriteCond %{HTTP_REFERER} !http:\/\/www.test.com.*
rewriteRule .*.(png|gif|jpg) error.gif [L]