.htaccess 如何从重定向http到https中排除我的子域
经过一些twerking之后,我成功地将我的站点从http重定向到https,以及其他重定向。很高兴它能工作,但只有一个问题!我的子域页面重定向到域主页。我尝试过各种排除方法,但我无法破解。谢谢你的帮助! (也希望以https运行博客。).htaccess 如何从重定向http到https中排除我的子域,.htaccess,redirect,.htaccess,Redirect,经过一些twerking之后,我成功地将我的站点从http重定向到https,以及其他重定向。很高兴它能工作,但只有一个问题!我的子域页面重定向到域主页。我尝试过各种排除方法,但我无法破解。谢谢你的帮助! (也希望以https运行博客。) RewriteEngine on Options +FollowSymLinks RewriteCond %{THE_REQUEST} ^.*/index\.html RewriteRule ^(.*)index.html$ https://www.westh
RewriteEngine on
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^.*/index\.html
RewriteRule ^(.*)index.html$ https://www.westhavenretreat.com/$1 [R=301,L]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule ^.*$ https://%1/$1 [R=301,L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.westhavenretreat.com/$1 [L,R=301]
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(.*)\.(.*)\. [NC]