【发布时间】:2014-05-26 09:44:32
【问题描述】:
我在访问 https://www 时遇到了我们网站的问题。领域。 com 出现“此连接不受信任”警告,如果在浏览器中键入 https://www.domain.com /nameofpage/s,则无法找到页面。但如果是 https://domain.com/ nameofpage/s
,一切都很好我们的证书详情:
购买地址:http://www.ssls.com/
通用名称是:domain.com
这就是我的 .htaccess 的样子:
<IfModule mod_rewrite.c>
RewriteEngine on
Options +FollowSymLinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} (auth|register|report|bootstrap)
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301]
RewriteCond %{HTTPS} on
RewriteCond %{HTTPS_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ https://domain.com/$1 [R=301,L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
【问题讨论】:
标签: php apache .htaccess redirect ssl