<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
#禁止指定蜘蛛访问
RewriteCond %{HTTP_USER_AGENT} www.baidu.com/search/spider.html$
RewriteRule ^(.*)$ fuck [R=403,L]
#非指定端口跳转
RewriteCond %{SERVER_PORT} !^443$
#非指定链接跳转
RewriteCond %{REQUEST_URI} !^/zb_users/theme/newscms/lib/weixin
#非指定域名跳转
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^kfuu.cn$ [NC]
RewriteRule ^.*$ https://kfuu.cn%{REQUEST_URI} [L,R=301]
#zblog伪静态规则
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
登录后可发表评论
点击登录