0
我想我有一個htaccess的問題。Symfony 2與子域問題
我有一個重定向到一個文件夾的子域,如subdomain.domain.com --> home/subdomain
的問題是,如果我寫subdomain.domain.com
不重定向到app.php,如果我寫subdomain.domain.com/app.php它的工作原理。
在另一邊,如果我寫domain.com/subdomain/web
(supossing,這是對應用程序的路徑)沒有必要寫app.php。
所以它的工作原理與兩個: domain.com/subdomain/web/ and domain.com/subdomain/web/app.php
我有以下的htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
我不知道htaccess的想法
PS:我不知道,如果有問題被理解,我想直接訪問subdomain.domain.com/app.php當我寫subdomain/domain.com
doesn't的工作,我會看所提供的鏈接,謝謝任何方式 – seipey 2012-08-16 22:36:36
不起作用? :(我敢打賭你的問題是在RewriteCond ... – 2012-08-16 22:39:40
我不知道如果問題已被理解,我想直接訪問subdomain.domain.com/app.php當我寫subdomain/domain.com – seipey 2012-08-16 22:42:22