FOSUserBundle: /login path giving 404 in the production environment

Symfony FOSUserBundle versions:

  • symfony 4.0.3
  • FosUserBundle master

routes/fos_user.yaml

fos_user:
    resource: "@FOSUserBundle/Resources/config/routing/all.xml"
    options: { i18n: false }

no problem when I try to access /login path in the development environment. but in the production environment, symfony giving 404 error.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 19 (5 by maintainers)

Most upvoted comments

Make sure your project uses the apache pack.

composer require symfony/apache-pack

This will add an .htaccess file in your public folder