The issue is that the server is not able to find the requested URL. This can be resolved by creating a .htaccess file in the root directory of the project. The .htaccess file should contain the following code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/ [L]
This code will redirect all requests to the index.php file, which will then handle the routing.
Additionally, it's important to make sure that the Apache mod_rewrite module is enabled. This can be done by uncommenting the following line in the httpd.conf file:
LoadModule rewrite_module modules/mod_rewrite.so
Once the .htaccess file is created and the mod_rewrite module is enabled, the routing should work as expected.