Route "index.php" not found (IIS)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
andisstrods
User
Posts: 2

Route "index.php" not found (IIS)

Post by andisstrods »

[2024-02-18T19:26:14.911354+00:00] log.ERROR: 404 Not Found Type: Slim\Exception\HttpNotFoundException Code: 404 Message: Route 'index.php' not found. File: C:\inetpub\wwwroot\leavers\src\routes.php Line: 22

Project generation runs with no issues, all files created however nothing launches on the web apart from 404 error. Error log from phpmaker creates similar to the above. Any advices?


arbei
User
Posts: 9384

Post by arbei »

With routing there is no need to use ".php" in the URL, you may just use "/" or "/index". If you have any code using "index.php", you should update it. There is no need to enter "index.php" as the Start Page.


andisstrods
User
Posts: 2

Post by andisstrods »

Good point however without index.php nothing loads either.

URL http://localhost/leavers/Dashboard2List gives below error:

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Detailed Error Information:
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://localhost:80/leavers/Dashboard2List
Physical Path C:\inetpub\wwwroot\leavers\Dashboard2List
Logon Method Anonymous
Logon User Anonymous

There must be something trivial that is missed. If any of the experts could advise, thank you and much appreciated


arbei
User
Posts: 9384

Post by arbei »

Make sure you have set up URL Rewrite for your IIS properly.


Post Reply