I have this rewrite rule to direct request to my symfony 2 application:
RewriteCond %{REQUEST_URI} ^/foo/.*$
RewriteRule ^/foo(/.*)$ /srv/webapps/symfony2/web/app.php [QSA,L]
If I access http://test-server.com/foo/myController
I get a symfony exception telling me that it doesn't know how to route foo/myController
.
I don't want to add foo
to the route in symfony since the application has to work with other URL prefixes as well. How can I make sure that the foo
part is not visible by symfony?