伪静态,防盗链怎么开启

#开启重写引擎
RewriteEngine on
#配置重写规则
RewriteRule     index.html     index.php/Welcome/news_list  [L]

#防盗链
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.caiji.com.*$ [NC]
RewriteRule .*\.(jpg|jpeg|png|gif)$        uploads/110.jpg

#地址错误,给出友好提示
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$      index.php/Welcome/error

你可能感兴趣的:(伪静态,防盗链怎么开启)