# Installation error: (HttpNotFoundException)

**URL:** <https://discourse.slimframework.com/t/installation-error-httpnotfoundexception/3539>\
**Category:** Questions\
**Created:** [October 14, 2019, 7:15pm UTC](https://discourse.slimframework.com/t/installation-error-httpnotfoundexception/3539 "2019-10-14T19:15:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luca1](https://avatars.discourse-cdn.com/v4/letter/l/919ad9/32.png) [@Luca1](https://discourse.slimframework.com/u/Luca1)\
**Post date:** [October 14, 2019, 7:15pm UTC](https://discourse.slimframework.com/t/installation-error-httpnotfoundexception/3539/1 "2019-10-14T19:15:41Z")

</div>

Hello,

I followed the Slim installation instructions and here is what I get on XAMPP:  
visiting: [http://localhost/www/myslimsite/public/](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

---

<div class="post-metadata">

**Author:** ![pedropereira](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/pedropereira/32/982_2.png) [@pedropereira](https://discourse.slimframework.com/u/pedropereira)\
**Post date:** [October 14, 2019, 7:50pm UTC](https://discourse.slimframework.com/t/installation-error-httpnotfoundexception/3539/2 "2019-10-14T19:50:00Z")

</div>

Hi 🙂  
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

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [October 14, 2019, 8:41pm UTC](https://discourse.slimframework.com/t/installation-error-httpnotfoundexception/3539/3 "2019-10-14T20:41:11Z")

</div>

Hi @Luca1

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

- [https://akrabat.com/running-slim-4-in-a-subdirectory/](https://akrabat.com/running-slim-4-in-a-subdirectory/)
- [https://github.com/selective-php/basepath](https://github.com/selective-php/basepath)

---

<div class="post-metadata">

**Author:** ![tengotutto](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@tengotutto](https://discourse.slimframework.com/u/tengotutto)\
**Post date:** [October 18, 2019, 6:53pm UTC](https://discourse.slimframework.com/t/installation-error-httpnotfoundexception/3539/4 "2019-10-18T18:53:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [October 18, 2019, 9:30pm UTC](https://discourse.slimframework.com/t/installation-error-httpnotfoundexception/3539/5 "2019-10-18T21:30:14Z")

</div>

Hi @tengotutto Please provide more details and code.

Have you tried this here (step by step)? [Slim 4 base path setup](https://github.com/selective-php/basepath#installation)

---

<div class="post-metadata">

**Author:** ![neuromancer](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/neuromancer/32/1260_2.png) [@neuromancer](https://discourse.slimframework.com/u/neuromancer)\
**Post date:** [November 26, 2020, 8:18am UTC](https://discourse.slimframework.com/t/installation-error-httpnotfoundexception/3539/6 "2020-11-26T08:18:41Z")

</div>

the truth is here

> [@Slim 4 - HttpNotFoundException](https://discourse.slimframework.com/t/slim-4-httpnotfoundexception/3273/22):
>
> Here is how I made it sing: root folder in apache24/htdocs/ accessible as localhost/ slim in localhost/vendor project in localhost/ .htaccess in root folder (localhost/) RewriteEngine On RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-d RewriteRule ^ index.php [QSA,L] index.php in root folder \<?php use Slim\Factory\AppFactory; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ResponseInterface as Response; require \_\_DIR\_\_ . '/…
