# Why my route don't work?

**URL:** <https://discourse.slimframework.com/t/why-my-route-dont-work/3499>\
**Category:** Questions\
**Created:** [October 2, 2019, 7:18pm UTC](https://discourse.slimframework.com/t/why-my-route-dont-work/3499 "2019-10-02T19:18:04Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![SVL](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@SVL](https://discourse.slimframework.com/u/SVL)\
**Post date:** [October 6, 2019, 12:59pm UTC](https://discourse.slimframework.com/t/why-my-route-dont-work/3499/6 "2019-10-06T12:59:06Z")

</div>

Adding this to your .htaccess fixes the issue, its not Slim related:

> Options -Indexes

To prevent other duplicate slashes in the url you can also add this:

> ```
> RewriteEngine On
> RewriteCond %{THE_REQUEST} ^[A-Z]+\ /(([^/\]+/)*)/+([^\]*)
> RewriteRule ^ /%1%3 [L,R=301]
> 
> ```

---

_[View the full topic](https://discourse.slimframework.com/t/why-my-route-dont-work/3499)._
