I have this apache server configured in mydomain.com/applications and inside that folder I have
- /project1/ - using silex
- /project2/ - using symfony 4
The server uses mod_rewrite and mydomain.com
is represented by /var/www/html
which is mapped as DocumentRoot
in apache configuration.
In my local environment, /project2/
is mapped as project2.test
and routes made with annotations works very well.
However, when moving the project to a directory, its routes doesn't work (whether in production or local env).
I'm pretty sure the routes were created correctly, but I guess I'm missing some symfony configuration when using symfony inside a subfolder.
I also tried to use RewriteBase "/application/project2/"
in my /project2/.htaccess
but didn't work.