php - Why i get 404 Not Found error when access Slim app deployed on Heroku?

one text

Solution:

If your root route works, then it sounds like the app deployed fine. Did you upload a .htaccess file to explain the rewrite rules to Heroku? From the Slim Docs, you need something like:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

This lets Apache know to send all requests that aren't to an existing file or directory into your index file (which will route to routes.php).

Source