SEO Stack Hub Use Free Tools

Should I use a 301 or 302 redirect when I change a page URL?

Technical SEOAsked by SEO Stack Hub · October 28, 2026

I’m changing a page URL on my site. Should I use a 301 or a 302 redirect?

1 answer

SEO Stack Hub TeamNov 3, 2026

If the move is permanent, use a 301 redirect. If the move is temporary and the old URL will come back, use a 302 redirect.
A 301 tells Google that the old URL has moved for good, so Google gradually replaces the old URL with the new one in its index and passes the ranking signals (including backlinks) to the new page. Use it when you change a slug, merge two articles, move from HTTP to HTTPS, or move to a new domain.
A 302 tells Google the change is temporary, so Google usually keeps the old URL indexed. Use it for short-term cases like an out-of-stock product page, an A/B test or a seasonal campaign page. If you leave a 302 in place for a long time, Google may eventually treat it like a 301, but it is better to send the correct signal from the start.
Good practice:

Redirect each old URL to the most relevant new page, not everything to the homepage.
Avoid redirect chains (A → B → C). Point A straight to C.
Update your internal links and XML sitemap so they use the new URL directly.
Check Search Console after the change to confirm the new URLs are indexed.

Big migrations can go wrong quickly. If you are moving a whole site, a technical SEO specialist from our SEO agency directory can help you plan the redirect map.

SEO Stack Hub was founded by Zahid Butt.