301 vs 302 vs 307 Redirects
A technical SEO guide to HTTP redirect status codes. When to use permanent vs temporary redirects for SEO preservation.
When to use which?
Changing Domain or URL Structure
"Moving a website to a new domain or updating slug structures for SEO."
A/B Testing or Maintenance
"Temporarily sending users to a different page while fixing the main page."
Read the Deep Dive
We wrote a comprehensive technical guide covering this exact topic in extreme detail.
Frequently Asked Questions
Q.What is the difference between 302 and 307?
Historically, browsers incorrectly changed POST requests to GET requests when following a 302 redirect. The 307 status code was created to strictly enforce that the HTTP method (e.g., POST) and body remain exactly the same when redirecting.
Q.Do 302 redirects harm SEO?
They do not "harm" SEO, but they do not immediately pass link equity. If you leave a 302 redirect in place for a long time (e.g., several months), Google will eventually start treating it like a 301.
Recommended Developer Utilities
Free, private, client-side tools relevant to this guide.
HTTP Redirect Checker
Free online 301 redirect chain checker. Trace the full path of HTTP redirects (301, 302, 307) in a visual waterfall. Identify redirect loops and optimize TTFB.
Apache .htaccess Generator
Create and test .htaccess files for your Apache server. Generate 301 redirects, rewrite rules, and validate configuration for better SEO and performance.