Say I have 2 apps:
frontend
backend
I want
domain.com -> frontend
backend.domain.com -> backend
I could do this in the .htaccess file assuming frontend is in the
index.php file
# backend web controller?
RewriteCond %{HTTP_HOST} ^backend\..+$ [NC]
RewriteRule ^(.*)$ backend.php [QSA,L]
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
This achieves my goal, but not elegantly. When link_to is used on the
backend it will always prepend links with '/backend.php' even though
it is unnecessary. Is there a nice way to handle this? Perhaps set a
default controller for that subdomain?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---