You can always modify the htaccess to redirect to different controller
based on the subdomain.

This is a mod redirect thing, not a Symfony thing.

On Mon, Jun 29, 2009 at 9:38 PM, Roland Cruse<cruses...@gmail.com> wrote:
>
> That's a bit of hoop jumping...
>
> Thanks for a solution.
>
> Roland
>
> On Mon, Jun 29, 2009 at 9:53 AM, Frank Stelzer<d...@bleedingmoon.de> wrote:
>>
>> Hi,
>> 1. Create for every application an subfolder (web_frontend,
>> web_backend, web_something ...)
>> 2. place the front controllers there
>> 3. rename them to index.php
>> 4. adept the relativ paths in the front controller to the subfolder
>> 5. let the virtual hosts point to the just created subfolders
>> 6. use symlinks to point from your subfolders to your common web
>> assets folders in the web dir
>>
>> Frank
>>
>> Am 29.06.2009 um 09:02 schrieb Roland Cruse:
>>
>>>
>>> Hi
>>>
>>> Does anyone know if you can make the frontcontroller transparent
>>> ("not" show up) in the url for a multi-apllication project?
>>>
>>> Right now I have three applications which have an apache virtual host,
>>> a .htaccess{_foo}, and a DirectoryIndex. The .htaccess redirects to
>>> the correct front controller. All three applications work but only the
>>> one with "index.php" makes the frontcontroller transparent. The other
>>> two show the front controller in the url.
>>>
>>> Thanks for any tips.
>>>
>>> <VirtualHost foo>
>>> ...
>>> ServerName foo
>>> DirectoryIndex index.php
>>> AccessFilename .htaccess
>>> ...
>>> </VirtualHost>
>>>
>>> <VirtualHost foo>
>>> ...
>>> ServerName foo2
>>> DirectoryIndex foo2.php
>>> AccessFilename .htaccess_foo2
>>> ...
>>> </VirtualHost>
>>>
>>> <VirtualHost foo>
>>> ...
>>> ServerName foo3
>>> DirectoryIndex foo3.php
>>> AccessFilename .htaccess_foo3
>>> ...
>>> </VirtualHost>
>>>
>>> .htaccess{_foo*}
>>> ...
>>>  # no, so we redirect to our front web controller
>>>  #RewriteRule ^(.*)$ foo2.php [QSA,L]
>>>  #RewriteRule ^(.*)$ foo3.php [QSA,L]
>>>  RewriteRule ^(.*)$ index.php [QSA,L]
>>> ...
>>>
>>> >
>>
>>
>> >
>>
>
> >
>



-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to