Ich habe eine Sub-Domain xxx.yyy.fr
mit apache2 in den Ordner konfiguriert /var/www/my_symfony_project/web/
Symfony .htaccess Umleitung Subdomain Route mit params
standardmäßig symfony alle Abfragen andere umleiten zu /app.php
(mit der .htaccess in/Web-Verzeichnis):
# Rewrite all other queries to the front controller.
RewriteRule^%{ENV:BASE}/app.php [L]
So wird xxx.yyy.fr
zu xxx.yyy.fr/app.php/
umgeleitet
ich habe eine Route wie: xxx.yyy.fr/app.php/my_route/{optional_param}
, mit einem Controller eines nd eine Aussicht.
Meine Frage ist: Wie kann ich diese URL für umschreiben, wenn ich gehe xxx.yyy.fr/{optional_param}
ist wie ich gehe auf die vollständige URL xxx.yyy.fr/app.php/my_route/{optional_param}
?
Danke!