fix redirects

fixes #121, fixes #118
Will this match without the trailing `/`?