我有一个带有自定义域名的青铜账户。我配置了一个
你可以看到,我有一个域名(secure)配置使用SSL证书。
我尝试了以下htaccess规则,但它们没有起作用。
secure
子域名以使用SSL证书,它正常工作。然而,我想在根域名上强制使用HTTP(即没有SSL)。但是,当我浏览https://example.com
时,我得到了属于example-myuser.rhcloud.com
的共享SSL证书。
如何禁用除secure
之外的所有子域名的HTTPS?
我的别名设置如下:Alias Has Certificate? Certificate Added
--------------------- ---------------- -----------------
example.com no -
secure.example.com yes 2014-07-26
www.example.com no
你可以看到,我有一个域名(secure)配置使用SSL证书。
我尝试了以下htaccess规则,但它们没有起作用。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# disable https on the root
RewriteCond %{SERVER_PORT} 443
RewriteCond %{HTTP_HOST} ^example\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example\.com [NC]
RewriteRule (.*) http://%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>