# Routes and trailing slash

**URL:** <https://forum.getkirby.com/t/routes-and-trailing-slash/9146>\
**Category:** Questions\
**Tags:** v2\
**Created:** [November 29, 2017, 7:02pm UTC](https://forum.getkirby.com/t/routes-and-trailing-slash/9146 "2017-11-29T19:02:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![11bits](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/11bits/32/860_2.png) [@11bits](https://forum.getkirby.com/u/11bits)\
**Post date:** [November 29, 2017, 7:32pm UTC](https://forum.getkirby.com/t/routes-and-trailing-slash/9146/3 "2017-11-29T19:32:46Z")

</div>

OK, I removed the trailing slash following this setup:

> [@How to force trailing slash?](https://forum.getkirby.com/t/how-to-force-trailing-slash/851/4):
>
> @jenstornell: I can save content from the panel with the following condition: # make panel links work RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_FILENAME} !-d RewriteRule ^panel/(.\*) panel/index.php [L] # remove trailing slash, but not for the panel RewriteCond %{REQUEST\_FILENAME} !-f RewriteCond %{REQUEST\_URI} !^/panel/.\*$ RewriteCond %{REQUEST\_URI} (.\*)$ RewriteRule ^(.+)/$ http://%{HTTP\_HOST}/$1 [R=301,L] # make site links work RewriteCond %{REQUEST\_FILENAME} !-f RewriteCon…

And now it works fine.

Danke!

---

_[View the full topic](https://forum.getkirby.com/t/routes-and-trailing-slash/9146)._
