我想重定向,因为它位于
之下答案 0 :(得分:0)
请参阅以下htaccess规则
# 301 --- http://www.domain.com => https://www.domain.com
RewriteRule ^$ /? [L,R=301]
# 301 --- https://domain.com => https://www.domain.com
RewriteCond %{HTTP_HOST} ^domain\.com$
RewriteRule ^$ https://www.domain.com/? [L,R=301]
# 301 --- http://subdomain.domain.com => https://subdomain.domain.com
RewriteRule ^$ /? [L,R=301]