I have deployed the Symfony2 project on my development server and want to run the dev environment.
Everything works fine if I use /app.php, but if I try app_dev.php, I get 404 error:
The requested URL / app_dev.php was not found on this server.
The following is a copy of my .htaccess file:
<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>
It works fine on my local machine, and not on my development server, any ideas why?
There are 777 permissions in the My / cache and / logs directories and belong to www-data:
drwxrwxrwx+ 4 www-data www-data 4096 Mar 15 11:46 cache drwxrwxrwx+ 2 www-data www-data 4096 Mar 15 11:05 logs
dev and prod in these directories are exactly the same.
source share