分类目录归档:应用服务器

htaccess

  • apache

AllowOverride All

LoadModule rewrite_module modules/mod_rewrite.so

<IfModule mod_alias.c>
Redirect 301 /xmlrpc.php http://surenpi.com
</IfModule>

  • 图片防盗链

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp-content/uploads/
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !surenpi.com [NC]
RewriteCond %{HTTP_REFERER} !baidu.com [NC]
RewriteRule .*\.(gif|jpg|png|rar)$ http://surenpi.com [R,NC,L]
</IfModule>查看全文。。。