Since we have multiple apps on the same site (and all apps related to a big project), I place multiple apps inside the web folder like this:
web /
|-- frontend
|-- backend
|-- api
Each should have its own app.php and app_dev.php. It is possible to place the frontend's app.php and app_dev.php right under root but that kinda breaks the nice structure we are trying to keep.
I'm trying to use these rules in my .htaccess
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^app_dev\.php.*$ frontend/app_dev.php [QSA,L]
RewriteRule ^(.*)$ frontend/app_dev.php [QSA,L]
Seems to work fine, except the fact that all links generated now have the prefix 'frontend' like this: abc.com/frontend/usual-route
Is there anyway to tell Symfony to ignore the frontend part in this case?