After a shopping cart migration, old URLs should not all redirect to the homepage, nor do you need to start by submitting bulk deindexing requests. If a corresponding new page exists, set up a 301 permanent redirect for each old URL. If the content no longer exists and there is no corresponding page, return a 404, or use a 410 when permanent removal is confirmed. Simply removing URLs from search results does not help visitors arriving through bookmarks or links on other sites find the content. The question is not just whether to keep .htaccess rules, but where each old URL should take visitors and which status code it actually returns.
If a corresponding product page exists, redirect to it directly
For a shopping cart platform change, a Webmasters Stack Exchange discussion recommends using a 301 redirect when the corresponding URL in the new system is known. This helps visitors find the content they wanted and lets search engines recognize that the content has moved to a new URL rather than disappeared.
- For example, if only a product’s URL has changed, its old page should redirect to that product’s new page, not the store’s homepage.
- First create a mapping of old URLs to new URLs, then configure 301 redirects through .htaccess or another suitable method.
- Keep existing redirects that still apply, and check their destinations and any redirect chains or loops. Merely confirming that “the website eventually opens” is not enough.
Tenten’s 2025 migration article also recommends creating a page-by-page mapping and testing redirects. These measures help reduce migration risks, but do not guarantee that rankings and traffic will remain completely unchanged.
When there is no replacement content, 404 and 410 each have their uses
If an old product or piece of content is genuinely no longer available and the new site has no corresponding page, do not force a redirect to an unrelated page just to retain traffic. Redirecting every missing URL to the homepage sends users to the wrong place and fails to clearly indicate that the original page no longer exists.
Recommendations differ on which status code to return: some community answers recommend a 404 when there is no corresponding content, while others prefer a 410. A 2019 Semrush article recommends a 410 for content that has been permanently removed and has no corresponding new URL. So do not treat every post-migration 404 as a configuration error, or assume that content is permanently gone simply because you cannot currently find a matching page.
Error pages can still help visitors by explaining that the site has been redesigned and providing a search box, a sitemap, or a way to get help. Other potentially relevant products can also be listed for visitors to choose from, without forcing a redirect.
Deindexing cannot replace redirects or error pages
The community discussion notes that removing old URLs from Google search results does not resolve the problem of bookmarks and external links still pointing to old locations. If the content has simply moved, prioritize redirecting old URLs to their corresponding new pages rather than removing the old URLs from search results first.
You do not necessarily need to keep the old product page: a working 301 redirect can keep old links usable. The discussion recommends keeping redirects for as long as possible; if the domain has not changed, they can even remain indefinitely. For URLs without corresponding content, continue reviewing 404 logs and customer service reports after the new site launches to check whether any pages that should have been redirected were overlooked.
Handling old URLs after a shopping cart migration: perspectives from across the web
What should you do if URLs that no longer exist are still listed in the sitemap?
If a URL is confirmed to no longer exist, remove it from the sitemap; if there is actually a new page with similar content, consider setting up a 301 redirect first. Listing nonexistent URLs in the sitemap may send inconsistent signals to search engines. A 2022 tutorial also mentions requesting validation in Search Console after fixing the issue, but its interface descriptions and report names should not be treated as current guidance.
What else can you do if a high-traffic old page was not moved directly to the new site?
First review the URL's traffic and external links, then check whether the new site already has corresponding content. If not, and the old page receives substantial traffic, one migration recommendation is to consider creating new content for those visitors. Whether that is worthwhile still depends on the content and the site's needs. This helps you plan the next steps rather than overlook visitors still arriving through old links simply because the URL no longer works.
Is an error page the only option when an old page has no corresponding content?
Not necessarily. The discussion includes an alternative, but views differ. One suggestion is to send visitors to a page explaining changes to the domain and site structure, where they can choose to visit popular pages or view a sitemap. Another recommends returning a 410 when content has been permanently removed and has no corresponding URL, rather than sending visitors to unrelated pages. However, the discussion proposing an explanatory page does not specify its status code, so it should not be taken to mean that any redirect is appropriate.
References
- What to do with random pages after a 301 redirect?webmasters.stackexchange.com — Discusses: Is an error page the only option when an old page has no corresponding content?
- The Complete Website Migration Checklist [SEO-Friendly]www.semrush.com · 2019-03-25T13:30:00Z — Discusses: Is an error page the only option when an old page has no corresponding content?
- Is it better to remove old URL from google via webmaster than 301 rewrite?webmasters.stackexchange.com — Source used in the article above.
- 網站搬家不崩潰:這樣做就對了! (指南+避雷)tenten.co · 2025-04-23T14:32:08.000Z — Source used in the article above.
- 【Google Search Console 完整教學】報表應用技巧、安裝驗證方式全收錄www.awoo.ai · 2022-02-18T10:01:42+00:00 — Discusses: What should you do if URLs that no longer exist are still listed in the sitemap?
- Is it better to remove old URL from google via webmaster than 301 rewrite?webmasters.stackexchange.com — Source used in the article above.
- What should be done with URLs that no longer exist on a site?webmasters.stackexchange.com — Source used in the article above.
- Moving large website to new CMS - URL changeswebmasters.stackexchange.com — Discusses: What else can you do if a high-traffic old page was not moved directly to the new site?
- Return all links from a google searchwebmasters.stackexchange.com — Source used in the article above.

