I know this has been asked many times, but something strange is happening to me. Apache DocumentRoot is pointing to symfony/web/ and this is my .htaccess inside web
This error is NOT Apache/htaccess related. This 404 error page is the default one of symfony itself!
Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
There is no route matching /route2. Check your routing like this:
php app/console router:debug
To inspect it quicker use grep or findstr ( Windows )
php app/console router:debug | grep route2
Please also check that your route is not only configured in the dev environment ( i.e. only in routing_dev.yml )!
php app/console router:debug --env=prod
please clear your prodution cache with ...
php app/console cache:clear --env=prod
... and check your log files if there is an uncaught Exception leading to the 404 page displayed when accessing the page. You can for example use this command to view the live changes in the production logfile.
tail -f app/logs/prod.log