I've been looking for the solution for a long time. There are a lot of such topics and I know it. But I still can't figure it out. How can I remove web
from the symfony2 project url? I tried to do this with htaccess
looking like this:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ web/$1 [L]
but it doesn't work. It gives me an error:
No route found for "GET /web/"
I really can't change the root directory on this server as only thing I have is FTP permission. Anybody has any idea for this?
Edit: I also tried a trick to put all the files from web
in root directory and the rest of the project higher. The problem is the highest directory I have access to is the root.