mod_rewrite, mod_jk & symfony2

In the virtual host config file, specify a <Directory …> tag as follows when deploying to the live server:

<Location /myapp>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</Location>

Leave a Reply