# Slim 4 Routing Issue

**URL:** <https://discourse.slimframework.com/t/slim-4-routing-issue/3604>\
**Category:** Questions\
**Created:** [October 31, 2019, 10:27pm UTC](https://discourse.slimframework.com/t/slim-4-routing-issue/3604 "2019-10-31T22:27:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsvetkovdimitar](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/tsvetkovdimitar/32/1001_2.png) [@tsvetkovdimitar](https://discourse.slimframework.com/u/tsvetkovdimitar)\
**Post date:** [October 31, 2019, 10:27pm UTC](https://discourse.slimframework.com/t/slim-4-routing-issue/3604/1 "2019-10-31T22:27:11Z")

</div>

Hello beautiful people. I just created a new project with Slim 4 for first time. I am trying to test how routing works. When I run the app I get this error:

**Fatal error** : Uncaught Slim\Exception\HttpNotFoundException: Not found. in /opt/lampp/htdocs/vruummates/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php:91 Stack trace: #0 /opt/lampp/htdocs/vruummates/vendor/slim/slim/Slim/Routing/RouteRunner.php(71): Slim\Middleware\RoutingMiddleware-\>performRouting(Object(Slim\Psr7\Request)) #1 /opt/lampp/htdocs/vruummates/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\Routing\RouteRunner-\>handle(Object(Slim\Psr7\Request)) #2 /opt/lampp/htdocs/vruummates/vendor/slim/slim/Slim/App.php(208): Slim\MiddlewareDispatcher-\>handle(Object(Slim\Psr7\Request)) #3 /opt/lampp/htdocs/vruummates/vendor/slim/slim/Slim/App.php(192): Slim\App-\>handle(Object(Slim\Psr7\Request)) #4 /opt/lampp/htdocs/vruummates/public/index.php(5): Slim\App-\>run() #5 {main} thrown in **/opt/lampp/htdocs/vruummates/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php** on line **91**

Then I add /test to the route which is the route I am testing and refresh the URL which produces this error:

# Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the [webmaster](mailto:you@example.com).

## Error 404

[localhost](http://localhost/)  
Apache/2.4.41 (Unix) OpenSSL/1.1.1d PHP/7.3.10 mod\_perl/2.0.8-dev Perl/v5.16.3

I have the following files:

[start.php](https://pastebin.com/Xist9MaJ)  
[index.php](https://pastebin.com/ULkwswW1)  
[.htaccess](https://pastebin.com/5bE8zpXs)

Here is the project structure:

 ![project_structure](https://canada1.discourse-cdn.com/flex030/uploads/slimframework/original/2X/5/54f83fba4277675fa184be0e1f253e49d31967c9.png)

Could you help me resolve it, please? Thank you!

---

<div class="post-metadata">

**Author:** ![tsvetkovdimitar](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/tsvetkovdimitar/32/1001_2.png) [@tsvetkovdimitar](https://discourse.slimframework.com/u/tsvetkovdimitar)\
**Post date:** [November 1, 2019, 9:44pm UTC](https://discourse.slimframework.com/t/slim-4-routing-issue/3604/2 "2019-11-01T21:44:49Z")

</div>

I resolved this. If someone stumbles upon this problem, here is the guide I followed to fix this: [https://github.com/slimphp/Slim](https://github.com/slimphp/Slim)
