I recently deployed a symfony project and noticed that the only way I can currently access the project is using the following URL:
http://domain.com/app.php/index
I was wondering if there is a way to automatically get the app.php to be served without actually including it in the URL.
Something like:
http://domain.com/index
Not sure if htaccess is required for this or if this is something that can be accomplished directly using Symfony.
This is what my htaccess currently looks like:
DirectoryIndex app.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /app.php/ [QSA,L]
</IfModule>
I appreciate any advice, thanks in advance!
.htaccesswhich you reference is very close to the one which I use in my own Symfony projects and I don't have issues with serving URL's omitting the app.php as part of the URL pattern. I do, however have the re-write base commented out..htaccessisnt working for me. I tried removing the re-write base all together, still no success. I get an internal server error.