.htaccess SSL证书,用于手动添加的子域名。

问题描述 投票:-2回答:1

我的主域名(www.domain.com)的.htaccess文件已经开始工作了。

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

然而,对于我的子域www.domain.comsubdomain,图标开始时是一个安全挂锁,但随后就变成了不安全的。我在.htaccess文件中使用了这个功能。

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

任何想法,我应该把什么在子域文件?

.htaccess ssl https ssl-certificate subdomain
1个回答
0
投票

想通了,有一张图片使用的是外部网址。

© www.soinside.com 2019 - 2024. All rights reserved.