I have the following .htaccess file in my web directory for my Symfony2 installation:
RewriteEngine On
RewriteCond %{R
I managed to remove web/app.php part on my shared server.
RewriteEngine on RewriteBase / RewriteRule ^css/(.*) web/css/$1 RewriteRule ^images/(.*) web/images/$1 RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ app.php [QSA,L]
I used RewriteCond on css and images as they still lie inside /web/ directory so all request to css and images will be routed to web/css and web/images directories respectively.
It worked well for me.