固定链接
修改nginx.conf文件
1 2 3 4 5 6 7 8 |
location / { index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1 last; } } |
防盗链
修改nginx.conf文件
1 2 3 4 5 6 7 8 |
location ~* (\.jpg|\.png|\.gif|\.jpeg|\.png)$ { valid_referers none blocked www.pigg.co pigg.co; if ($invalid_referer) { return 403; } } |