handle 301 redirects like most common browsers