我是第一次安装SSL。我遇到了一个问题,https://gatorinsurances.com
可以解决,但是https://www.gatorinsurances.com
无法解决。
我的.htaccess
代码:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Force https and remove www
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://gatorinsurances.com%{REQUEST_URI} [R=301,L]
# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
</IfModule>