How to Set Up Clean Redirects After Moving a Site
Learn how to set up clean 301 redirects after moving a site, avoid redirect chains and loops, preserve SEO traffic and test migration URLs.
Introduction
When you move a website, change domains, switch CMS platforms or restructure URLs, old links may stop working unless redirects are set up correctly. Clean redirects send users and search engines from old URLs to the most relevant new URLs.
A good redirect plan prevents broken pages, preserves traffic, reduces SEO loss and avoids confusing redirect chains. A bad redirect setup can create 404 errors, redirect loops, slow page loading, duplicate URLs and lost search visibility.
Quick answer
After moving a site, create a redirect map from old URLs to the closest matching new URLs. Use 301 redirects for permanent moves, redirect directly to the final HTTPS canonical URL, avoid chains and loops, update internal links and sitemaps, then test old URLs with a Website Status Checker.
Clean redirects
Clean redirects are intentional URL forwarding rules that send visitors and search engines from an old URL to the correct new URL in one clear step.
A clean redirect should:
- use the correct redirect type
- point to the most relevant destination
- avoid unnecessary hops
- avoid loops
- preserve HTTPS
- respect www/non-www choice
- return a final 200 OK page
- avoid redirecting everything to the homepage
The best redirect is usually old URL → final new URL, not old URL → intermediate URL → final URL.
When redirects are needed
Redirects are usually needed when:
- moving to a new domain
- changing from HTTP to HTTPS
- changing www to non-www or the reverse
- rebuilding a site in a new CMS
- changing URL slugs
- removing .html or trailing slashes
- merging pages
- deleting old pages with replacements
- changing category structures
- moving blog posts or guides
- changing product/service URLs
- migrating from subdomain to root domain
Any URL that previously received users, backlinks or search traffic should be reviewed during migration.
301 vs 302
301 redirect
- Meaning: Permanent move.
- Use for: Domain moves, HTTPS migration, old page to new replacement, permanent URL changes.
- SEO note: Usually the right choice for permanent migrations.
302 redirect
- Meaning: Temporary move.
- Use for: Short-term testing, temporary campaigns, maintenance routing or temporary location changes.
- SEO note: Do not use 302 for permanent migrations unless you intentionally want the old URL treated as temporary.
For most site moves, 301 redirects are the correct default.
Redirect map
A redirect map is a list of old URLs and their new destinations.
Include:
- old URL
- new URL
- redirect type
- page type
- priority
- notes
- final status after testing
Old URL | New URL | Type | Priority | Status
Do not redirect every old URL to the homepage. Redirect each old page to the closest relevant replacement.
Relevant destinations
Redirect relevance matters.
Good redirect
Old service page → new equivalent service page.
Acceptable redirect
Old blog article → updated article on the same topic.
Weak redirect
Old detailed page → broad category page.
Bad redirect
All old pages → homepage.
If there is no relevant replacement, a 404 or 410 may be better than an irrelevant redirect.
Why this matters
Clean redirects matter because users, backlinks, bookmarks and search engines may continue visiting old URLs long after a migration. If those URLs return 404, loop, redirect incorrectly or land on irrelevant pages, traffic and trust can drop.
Redirects are especially important after domain changes, WordPress rebuilds, SEO migrations, HTTPS migrations and website redesigns.
How to check redirects
Use Website Status Checker to test old URLs and confirm where they end.
Check:
- Old homepage — Confirm it redirects to the new homepage.
- Important old pages — Test service pages, tools, products, guides and blog posts.
- Final URL — Confirm the redirect lands on the correct final page.
- Final status — Confirm the final page returns 200 OK.
- Redirect chain — Confirm the redirect happens in one step where possible.
- HTTPS — Confirm final URLs use HTTPS.
- www/non-www — Confirm canonical host is consistent.
- 404 pages — Confirm removed pages return 404/410 or relevant redirects.
Test your redirects
Use Website Status Checker to test old URLs and confirm where they end.
Common problems
Redirect chain too long
MediumThe URL passes through multiple redirects before reaching the final page.
Next step: Redirect the old URL directly to the final canonical URL.
Redirect loop
HighThe URL redirects back to itself or cycles between URLs.
Next step: Review HTTP/HTTPS, www/non-www, CDN and application redirect rules.
Old pages return 404
HighImportant migrated pages are missing redirects.
Next step: Add 301 redirects to the closest relevant new pages.
Everything redirects to homepage
MediumOld URLs lose topical relevance and users may land on the wrong page.
Next step: Create page-to-page redirects where possible.
302 used for permanent move
MediumA permanent migration is treated as temporary.
Next step: Change permanent migration rules to 301.
HTTP and HTTPS conflict
HighHTTPS rules conflict between server, CMS and CDN.
Next step: Use one clean HTTPS redirect path.
www/non-www conflict
MediumBoth versions redirect inconsistently or create duplicate paths.
Next step: Choose one canonical host and redirect the other.
Internal links still point to old URLs
MediumUsers and crawlers keep hitting redirects from inside the site.
Next step: Update internal links to the final URLs.
Sitemap contains redirected URLs
MediumSearch engines receive old URLs instead of final canonical pages.
Next step: Update sitemap to include only final 200 URLs.
Redirect target is irrelevant
MediumUsers land on a page that does not match the old intent.
Next step: Redirect to a closer replacement or return 404/410 if no replacement exists.
How to set up redirects
-
Step 1: Export old URLs
Collect URLs from sitemap, analytics, search console, backlinks, crawl tools and server logs.
-
Step 2: List new URLs
Create the final URL list for the new site.
-
Step 3: Map old to new
Match each important old URL to the closest relevant new URL.
-
Step 4: Choose redirect type
Use 301 for permanent moves and 302 only for temporary changes.
-
Step 5: Redirect to final canonical URL
Point old URLs directly to HTTPS and the chosen www/non-www version.
-
Step 6: Avoid chains and loops
Remove intermediate hops and conflicting redirect rules.
-
Step 7: Update internal links
Change menus, buttons, content links, canonicals and sitemap to final URLs.
-
Step 8: Test before launch
Check old URLs, new URLs, redirect chains and final statuses.
-
Step 9: Monitor after launch
Review 404 logs, crawl errors, traffic changes and redirect failures.
After launch
Use this post-migration redirect checklist once redirects are live.
Old homepage redirects correctly
Main old URL reaches the new homepage.
Top old pages redirect correctly
High-traffic URLs reach relevant new pages.
Old HTTP redirects to new HTTPS
Insecure old URLs reach secure final pages.
Old www/non-www handled correctly
Canonical host behavior is consistent.
Final pages return 200
Destination pages load successfully.
No redirect loops
URLs do not cycle between redirects.
No long chains
Old URLs reach final pages in one step where possible.
Sitemap has final URLs only
XML sitemap lists canonical 200 pages.
Canonical tags use final URLs
SEO signals point to final destinations.
Internal links updated
Menus and content use final URLs directly.
Important backlinks tested
High-value inbound links still resolve correctly.
404 logs reviewed
Missing redirects are identified and fixed.
Search Console crawl errors monitored
Migration issues are tracked after launch.
Analytics traffic checked
Traffic shifts are reviewed for unexpected drops.
Redirect examples
Good redirect:
Old:
http://oldsite.com/services/web-design
New:
https://newsite.com/services/web-design
Result:
301 → https://newsite.com/services/web-design
Final status: 200 OK
Bad redirect chain:
http://oldsite.com/services/web-design
→ 301 https://oldsite.com/services/web-design
→ 301 https://www.newsite.com/services/web-design
→ 301 https://newsite.com/services/web-design
→ 200 OK
Better:
http://oldsite.com/services/web-design
→ 301 https://newsite.com/services/web-design
→ 200 OK
Examples are illustrative. Replace domains and paths with your real migration URLs.
Apache .htaccess example:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^oldsite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.oldsite\.com$
RewriteRule ^(.*)$ https://newsite.com/$1 [R=301,L]
Nginx example:
server {
listen 80;
server_name oldsite.com www.oldsite.com;
return 301 https://newsite.com$request_uri;
}
These examples are simplified. Real server rules depend on SSL, hosting panel, CDN, WordPress and existing redirects. Test before applying to production.
WordPress redirects
WordPress redirects may be controlled by plugins, .htaccess, Nginx, hosting panel, CDN or WordPress settings.
- WordPress Address URL
- Site Address URL
- permalink structure
- redirect plugin rules
- .htaccess rules
- Nginx rules
- CDN redirect rules
- HTTPS settings
- www/non-www settings
- old slug redirects
- category/tag changes
Avoid duplicating the same redirect rule in several places. Multiple layers can create loops or chains.
Domain migration
When moving from one domain to another, redirect old-domain URLs to matching new-domain URLs.
oldsite.com/about → newsite.com/about
oldsite.com/contact → newsite.com/contact
oldsite.com/services/hosting → newsite.com/services/hosting
Check:
- old domain DNS still points to a server/CDN that can redirect
- SSL works on the old domain if HTTPS old URLs exist
- all important paths redirect
- final URLs are canonical
- old domain remains active long enough for users and search engines
Do not let the old domain expire immediately after migration.
Redirects help search engines understand where old content moved.
- use 301 for permanent moves
- redirect to relevant pages
- avoid redirect chains
- update canonical tags
- update XML sitemap
- update internal links
- keep old domain active
- monitor crawl errors
- check important backlinks
- avoid mass homepage redirects
- keep content intent similar
Redirects reduce migration risk, but rankings can still fluctuate after major site changes.
Frequently asked questions
What redirect should I use after moving a site?
Use 301 redirects for permanent site moves or permanent URL changes.
Should every old URL redirect to the homepage?
No. Redirect old URLs to the closest relevant new pages where possible.
How long should I keep redirects?
Keep important migration redirects for a long time, especially if old URLs have backlinks or traffic.
Can redirect chains hurt SEO?
Yes. Long chains slow crawling and create unnecessary complexity.
What causes redirect loops?
Conflicting HTTP/HTTPS, www/non-www, CDN, server, CMS or plugin rules.
Should sitemap include old redirected URLs?
No. Sitemaps should usually contain final 200 canonical URLs.
What if there is no replacement page?
Use a relevant category page if appropriate, or return 404/410 if the content is truly gone.
Related tools
Use these free tools to verify your configuration after applying changes.
Related guides
Browse all Website Health guides →Need help applying this fix?
Send us your domain, report link or issue details. CheckDomainHealth will review the request and route it to the right technical team if hands-on support is needed.
Was this guide helpful?
Your feedback helps us improve our guides for everyone.
Thanks for your feedback!