How to configure symfony app

I think the issue is caused by your .htaccess setup.

I see you tried to make the public folder thing work by setting a DirectoryIndex in the .htaccess file in the htdocs folder. The project folder and the public folder themselves don’t have any .htaccess files.

The consequence is that /orange-debit-suivi/ will be routed to /orange-debit-suivi/public/index.php, which is OK, but /orange-debit-suivi/admin/ will be routed to /orange-debit-suivi/admin/public/index.php, which is not OK of course.

If you can make it work, good for you, but I would like to suggest a different route:

  1. Delete the .htaccess file in the htdocs directory. You don’t need it for your sub-project.
  2. Restore the original Symfony .htaccess file in the public folder. It contains configuration necessary for Symonfy to work.
  3. Create a new .htaccess file in the /orange-debit-suivi/ folder with this code: .htaccess for Laravel