I'm trying to rewrite my login URL to /login/. The first part is working fine, if you go to example.com/login/ you see my login page. But if you go to example.com/login you get an error
I tried doing a 301 redirect from /login to /login/ but it generated a redirect loop. I also tried setting example.com/login to show the login page, which worked but then I had two working URLs - example.com/login and example.com/login/ which I don't like. Is there an easy way to make sure the trailing slash is always appended?