目前,我的.htaccess 是这样写的:
</code># BEGIN SSL
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
FileETag none
</IfModule>
# END SSL
# GZIP BEGIN
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/css application/x-javascript
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 2 months"
</IfModule>
# GZIP END
# RULE BEGIN
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
#RULE END
#BLOG BEGIN
RewriteCond %{HTTP_HOST} ^(www.)?xiaolvmu.techllage.com$
RewriteCond %{REQUEST_URI} !^/xiaolvmu/
RewriteRule ^(.*)$ /xiaolvmu/$1
RewriteCond %{HTTP_HOST} ^(www.)?xiaolvmu.techllage.com$
RewriteRule ^(/)?$ xiaolvmu/index.php [L]
#BLOG END<code>
现在,我想仅仅让 techllage.com 这个顶级域名进行 https 跳转。明明声明了 RewriteBase /,但是为什么二级域名还是会跳转 https 呢?
这该怎么办?
</code># BEGIN SSL
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
FileETag none
</IfModule>
# END SSL
# GZIP BEGIN
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/css application/x-javascript
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 2 months"
</IfModule>
# GZIP END
# RULE BEGIN
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
#RULE END
#BLOG BEGIN
RewriteCond %{HTTP_HOST} ^(www.)?xiaolvmu.techllage.com$
RewriteCond %{REQUEST_URI} !^/xiaolvmu/
RewriteRule ^(.*)$ /xiaolvmu/$1
RewriteCond %{HTTP_HOST} ^(www.)?xiaolvmu.techllage.com$
RewriteRule ^(/)?$ xiaolvmu/index.php [L]
#BLOG END<code>
现在,我想仅仅让 techllage.com 这个顶级域名进行 https 跳转。明明声明了 RewriteBase /,但是为什么二级域名还是会跳转 https 呢?
这该怎么办?