Don't you have to replace "DirectoryIndex app.php" with "DirectoryIndex app_dev.php" in the 6th line in your .htaccess hile?