How to set up 301 redirects after a website redesign without losing SEO
When you redesign a website or move it to a new domain, page addresses often change. If the old URLs simply disappear, visitors hit 404 errors and the rankings those pages earned in Google are lost. A 301 redirect tells browsers and search engines "this page has moved permanently" and passes them to the new address. This guide shows you how to set up 301 redirects after a website redesign without losing SEO.
Step 1: List your old URLs before anything changes
- Export your current pages from Google Search Console: Performance → Pages tab → Export. These are the pages that bring traffic.
- Add URLs from your current sitemap (for example
/sitemap_index.xmlor/wp-sitemap.xml). - Note pages that other websites link to, such as popular articles or product pages.
- Keep the list in a spreadsheet with two columns: Old URL and New URL.
Step 2: Map every old URL to the closest new page
- Redirect each old page to its direct equivalent (old service page to new service page), not everything to the home page.
- If a page no longer exists, redirect it to the closest relevant category or page.
- Keep URLs the same where you can; the best redirect is the one you do not need.
Step 3: Create the redirects
Option A: WordPress plugin. Use a redirect plugin such as Redirection, or the redirect module in Rank Math. Add each old path and its new URL with type 301. Many of these tools can import a CSV file.
Option B: cPanel Redirects. In cPanel, open Redirects (in the Domains section), choose Permanent (301), pick the domain, enter the old path and the new address, and click Add. Good for a few redirects.
Option C: the .htaccess file. EgWeb hosting runs LiteSpeed, which reads Apache-style .htaccess rules. Back up the file before editing, because one wrong line can take the site down with a 500 error. Add single redirects like this:
Redirect 301 /old-services.html https://yourcompany.com/services/
Redirect 301 /about-us.php https://yourcompany.com/about/
To move a whole site to a new domain while keeping the same paths, put this in the .htaccess of the old domain:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com$ [NC]
RewriteRule ^(.*)$ https://newdomain.com/$1 [R=301,L]
If the site shows an error after saving, restore your backup copy of .htaccess. See also How to Force HTTPS and Redirect www to non-www.
Step 4: Update everything you control
- Change internal links and menus to point straight to the new URLs, so visitors do not pass through redirects.
- Submit the new sitemap in Search Console (how to submit a sitemap).
- For a domain change, add the new domain in Search Console and use Settings → Change of address in the old property.
- Update links in your Google Business Profile, social profiles, ads and email signatures.
Step 5: Test and monitor
- Open a sample of old URLs in a private browser window and confirm each lands on the right page.
- Check the response code from a terminal if you like:
You should seecurl -I https://yourcompany.com/old-services.html301and aLocation:line with the new URL. - Watch the Pages report in Search Console for new 404 errors over the following weeks and add missing redirects.
Common problems
- Redirect chains and loops: A to B to C slows things down; A to B to A breaks the page. Point every old URL straight to its final address.
- Using 302 instead of 301: 302 means "temporary". Use 301 for permanent moves.
- Rankings dip at first: some movement for a few weeks after a migration is normal. Large, lasting drops usually mean missing redirects or lost content.
Frequently asked questions
Do 301 redirects pass all SEO value?
Google has said 301 redirects do not lose PageRank, but rankings also depend on the new page's content. If the new page is much weaker, rankings can still drop.
Can I redirect all old pages to the home page?
It is not recommended. Google often treats such redirects like 404s, and visitors get confused.
Planning a redesign? Our web design team can plan the redirects as part of your relaunch, and our SEO team can audit a migration.