Z-BlogPHP如何强制https访问 zblog网站常见问题

Apache + .htaccess

可以在.htaccess文件中添加以下规则来强制https访问:

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

posted @ 2026-03-06 09:57  可有仙子迎风立  阅读(14)  评论(0)    收藏  举报