I've deployed my Symfony2 project to my development server and want to run the dev environment.
Everything is running fine if I use /app.php but if I try app_dev.php I get a 404 error:
The requested URL /app_dev.php was not found on this server.
Below 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, just not on my development server, any ideas why?
My /cache and /logs directories are both have 777 permissions and are owned by 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 within these directories are exactly the same.