The only way I’ve been able to bring up the Symfony Demo home page is to use the
app_dev.php and use the dev environment.
In other words, going to the ‘/’ URI hasn’t been working unless I use the dev environment. If my domain is example.com, then example.com/ is not working – it gives a 404 error. If I use example.com/app_dev.php then it worked.
Today I finally figured out why. After doing a little searching, I realized that since it’s the production environment, I probably needed to clear the cache.
Ahh, the good ol’ Symfony cache! I had almost forgotten about you. I thought I read somewhere that you didn’t have to do this anymore, but I see that you do. Clearing the cache worked perfectly.
php app/console cache:clear --env=prod
You can also just delete the
app/cache/prod folder and it’s contents.