Installation error: (HttpNotFoundException)

Hello,

I followed the Slim installation instructions and here is what I get on XAMPP:
visiting: http://localhost/www/myslimsite/public/

Fatal error: Uncaught Slim\Exception\HttpNotFoundException: Not found. in C:\xampp\htdocs\www\myslimsite\vendor\slim\slim\Slim\Middleware\RoutingMiddleware.php on line 91
( ! ) Slim\Exception\HttpNotFoundException: Not found. in C:\xampp\htdocs\www\myslimsite\vendor\slim\slim\Slim\Middleware\RoutingMiddleware.php on line 91

What’s the problem here? How can I get it installed without errors?

Thanks

Hi :slight_smile:
You need to show more information, like:

  • Where is your index.php
  • What configuration do you have in .htaccess
  • How are you defining that failing route
  • Other information you see relevant

Hi @Luca1

To run Slim 4 with Apache in a subdirectory you can try this:

I tryed this “https://akrabat.com/running-slim-4-in-a-subdirectory/” but don’t work in XAMPP 7.3.10

Hi @tengotutto Please provide more details and code.

Have you tried this here (step by step)? Slim 4 base path setup