标签: redirect https cpanel
我想将带和不带www的Wordpress从HTTP重定向到HTTPS。即:
http://www.example.com将重定向到https://www.example.com
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]