Change 301 to 307 on redirects