Added setting to control 301 over 302 redirects.