...
Using .htaccess is not configured
If only index.php is working, but for example /login gives an 404 error, check the apache config if using .htaccess files is enabled.
In the httpd.conf there should be something like that:
<Directory "/var/www/html/public">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Ensure that AllowOverride is All and not None!