Redirect from URL with and without trailing slash


I am trying to set up some redirects:

redir 301 {
    /a/ /b/

I would like to redirect /a to /b/ as well, and I wonder if it’s possible to do that without putting both /a/ and /a in redir, as I have more than a few links to handle.

What happens now is that if the file /a/index.html actually exists, then /a will first be redirected to /a/, then to /b/. But if /a/index.html doesn’t exist, then /a will return 404, and /a/ will be redirected to /b/.

I’d appreciate some suggestions. Thanks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.