RewriteEngine on # 隐藏入口文件 RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [L] # 防止资源盗链 RewriteCond %{HTTP_REFERER} !^$ [NC] RewriteCond %{HTTP_REFERER} !football.com [NC] RewriteCond %{HTTP_REFERER} !zuqiux.com [NC] RewriteRule .*.(gif|jpg|png)$ http://zuqiux.com/static/images/no-photo.png [R,NC,L]
时间: 2024-10-13 18:06:06