[英]Laravel 4 ssl subdomain redirects to main domain
我已經在子域app.domain.com中安裝了laravel 4,而我的主域是在wordpress上。 我在laravel 4框架上的app.subdomain.com可以完美運行,但是當我使用ssl https://app.subdomain.com運行它時,它將顯示主要的域名內容,即wordpress網站。
我已經有該子域的通配符證書。
我需要更改.htaccess中的任何mod嗎?
謝謝。
我的主機是hostmonster。 即時通訊使用帶有子域的插件域。
這是我的子域名.htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
主域(wordpress)
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
好像您的主域虛擬主機覆蓋了項目的ssl子域。 如果禁用它,然后重新啟動apache,您的應用程序仍然無法訪問嗎?
因為您不需要為此更改Laravel和/或htaccess。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.