Panel won't load, if i enforce URLs without trailing slash

i would like to ‘enforce without trailing slash’ like
desribed in the cookbook-article

# make site links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R]
RewriteRule ^(.*) index.php [L]

unfortenetly the panel is not loading afterwards.

did i make something wrong? or can i exclude panel-urls from that rewrite?
i have also tested that in a fresh plainkit 3.5.5


Looks like you didn’t really follow what is says in the recipe. The two lines come before #make site links work.

ooh, unfortunately i only read the section for non-trailing-slash.
now it works great! thank you very much!