Redirect with 301, not 302. Also simplify URL construction.
Fixes #6