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