Apache htaccess 重定向在主域上的流量子域 https

通过连接到我的一个子域之一,我有问题

https

.

考虑以下领域:

mydomain.com

tasks.mydomain.com

stuff.mydomain.com

每当我想去的时候

[url=https://stuff.mydomain.com]https://stuff.mydomain.com[/url]

, 文件 (db 等等。) 从主要

mydomain.com

而不是

stuff.mydomain.com

. 我希望它有意义。

我的主域使用框架 PHP

Yii 1.1.15

有以下内容

.htaccess

在网络的根源中:

Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on


# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

# otherwise forward it to index.php
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

有任何想法吗?

编辑

最初,我转向了 SO, 但我建议在这里尝试。
已邀请:

诸葛浮云

赞同来自:

你可以检查两次以确保证书 SSL 为每个子域设置。

也许您没有一个安装不正确的子域内的设置。

通过评论来评判,它看起来并不像它,但这是一个常见的原因,因此值得检查两次。

要回复问题请先登录注册