I have some shared ftp location on which I am trying to use the Symfony2 Framework.
And All i have is the ftp details and the database.
Please help me to remove web/app.php form the url and that redirects to the main url.
I have some shared ftp location on which I am trying to use the Symfony2 Framework.
And All i have is the ftp details and the database.
Please help me to remove web/app.php form the url and that redirects to the main url.
put this in your .htaccess file inside your web/ directory:
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
# Explicitly disable rewriting for front controllers
RewriteRule ^app_dev.php - [L]
RewriteRule ^app.php - [L]
RewriteCond %{REQUEST_FILENAME} !-f
# Change below before deploying to production
#RewriteRule ^(.*)$ app.php [QSA,L]
RewriteRule ^(.*)$ app_dev.php [QSA,L]
</IfModule>
taken from here - symfony2 rewrite rules .htaccess app.php