熟话说好记性不如烂笔头,像这种代码,要记住还是很难的,程序员除外。

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://ooeek.com/$1 [R=301,L]
RewriteCond %{http_host} ^ooeek.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://ooeek.com/$1 [R=301,L]

一劳永逸,直接跳转并加https

标签: html, 伪静态

添加新评论