如果您转到http://icdcspares.com,则有两个重定向
http://icdcspares.com
301 Moved Permanently
https://icdcspares.com/
301 Moved Permanently
https://www.icdcspares.com/
200 OK
但是我想要从http://icdcspares.com到https://www.icdcspares.com/的直接重定向,而不要经过https://icdcspares.com/。我该怎么办?
我的htaccess文件是这样的:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
</IfModule>