Trailing slash and reverse proxy problem

I’m running piwik behind a reverse proxy setup. Everything works fine except one minor problem, that really bugs me.

When I acces piwik via everything works as expected. But when I use (notice the missing trailing /) I get a redirect (301) which leads me to http://internal-hostname.lan/piwik/.

The redirect seems to be generated from within piwik. Whats the Problem here?


the redirect is not generated by Piwik, please check that the redirect is not done on your server itself