bugfix: 301 and 302 redirects