在我的我的Apache服务器上的虚拟主机,我有以下,重定向到没有WWW
Redirect permanent/https://domain.com
<directory />
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
</IfModule>
# Redirects WWW URL's to Non-WWW URL's
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule^http://%1%{REQUEST_URI} [R=301,L]
</IfModule>
</directory>
我们自己的domain.com的SSL,但对www.domain.com,所以我遇到一个问题在我的重定向,如果用户进入,http://www.domain.com
他们将被重定向从有到https://domain.com
,但是如果用户去https://www.domain.com
他们获得了您的连接不是私密且没有重定向。我认为这是因为www没有链接到SSL是否有没有购买SSL版本的域的SSL?
爱知道这个已被投票了吗? – Udders