Developers should first identify which URLs need to change, then redirect old URLs to the corresponding new content and check the sitemap as well. Use 301 redirects for permanent moves and a suitable temporary redirect for temporary moves. Do not send every defunct page to the homepage. After setup, test for redirect chains and loops, and check the sitemap for errors. These measures can reduce migration risks, but they cannot guarantee that rankings will remain unaffected.
Map URLs first—a redesign does not mean redirecting everything
When planning a URL migration, compile and cross-check URL lists from crawlers, search indexes, traffic logs, backlinks, XML sitemaps, and CMS exports to reduce the chance of overlooking important pages. Then decide whether to keep, move, or delete each page.
- Content is moving permanently to a new location: use a 301 redirect from the old URL to the corresponding page.
- Content is moving only temporarily: consider a 302 redirect rather than marking a temporary arrangement as a permanent move.
- The homepage still uses the original root-domain URL: simply update the content; a layout change alone does not require a new redirect.
Choose relevant destination pages and avoid pointless redirects
If a new page has content similar to the old page, make it your first choice for the redirect destination. For example, after an article moves, readers should arrive at its new URL, not just the site’s homepage. A 2023 Semrush article also recommends redirecting directly from the original URL to the latest URL to avoid multiple hops that slow loading.
If content has been deleted and there is no relevant replacement page, the Semrush article says it is acceptable to keep returning a 404 response. A Webmasters Stack Exchange answer instead suggests redirecting to a page explaining the site migration and offering popular content and a sitemap. These are different approaches; neither establishes that all 404s must be redirected.
Configure redirects for your server, backing up before changes and testing
On Apache sites, you can configure 301 redirects through .htaccess. Before making changes, confirm that the host allows you to edit the file and that you have the necessary permissions. Back up the site and original files as well. If you are unfamiliar with the site’s admin interface, seek help from a developer. WordPress sites can also use redirect plugins, but you still need to test whether old URLs reach their intended destinations.
If a batch of URLs changes according to a consistent pattern, consider using a single rule. For example, pattern matching is suitable when a news subdomain moves to a news directory on the main site and the rest of the path structure remains unchanged. This approach requires a consistent pattern; it cannot handle pages moving to different locations with no shared pattern.
Align sitemaps with content settings and check them after submission
Sitemaps can help search engines discover pages and are particularly useful for large sites with complex structures. You should still maintain good internal linking. When using tools that generate sitemaps automatically, make sure you understand which content will be included.
According to Yoast’s March 2026 product documentation, content set to noindex is automatically excluded from its XML sitemaps. Developers can also use filters to adjust the number of URLs or exclude content types. This is how Yoast handles sitemaps; do not assume every CMS works the same way.
Check for errors after submitting the sitemap. A 2021 tutorial on Neil Patel’s website recommends checking the Sitemaps report in Search Console rather than treating submission as the final step.
Redirects and sitemaps: perspectives from across the web
When switching from HTTP to HTTPS, what should you do besides setting up redirects?
Confirm that all versions redirect to the correct HTTPS URL, check canonical tags, and update URLs in internal links and sitemaps to HTTPS. The iThome article also recommends conducting an SEO audit before switching to identify potential problems early. These preparations can reduce migration risks, but they cannot guarantee that traffic will not decline.
Does “307 internal redirect” in developer tools mean the server has a redirect configured?
Not necessarily. Semrush distinguishes between a genuine 307 temporary redirect and the “307 internal redirect” shown in Chrome Developer Tools: the latter is an unofficial name. When a site uses HSTS, the browser switches to HTTPS, and the tools may display this label. When investigating, first determine which situation you are dealing with.
How should existing redirect rules be handled when reverting to old URLs?
First, check the rules for the old URLs you plan to restore, and remove any that would redirect those URLs elsewhere. Then set up 301 redirects from the current URLs to the corresponding restored URLs. An answer on Webmasters Stack Exchange notes that keeping redirects in the original direction while adding redirects in the opposite direction can create an infinite loop. This advice applies when the old pages are being brought back online.
What are the trade-offs of managing sitemaps with a headless CMS?
A headless CMS gives developers more flexible control over URL structures, code, structured data, and XML sitemaps, but that flexibility also requires more technical effort from the team. If you choose this architecture, include sitemap generation and management in the development work rather than assuming the system will handle every detail automatically.
References
- 什麼是 Headless CMS? 無頭 CMS 懶人包: 開發者和行銷必看的神器tenten.co · 2025-08-28T02:32:38.000Z — Discusses: What are the trade-offs of managing sitemaps with a headless CMS?
- What to do with random pages after a 301 redirect?webmasters.stackexchange.com — Source used in the article above.
- SEO最新的演算情形想表達什麼呢?ithelp.ithome.com.tw — Discusses: When switching from HTTP to HTTPS, what should you do besides setting up redirects?
- Google PageSpeed Insights: What It Is & How to Boost Your Scorewww.semrush.com · 2023-07-10T09:40:00Z — Source used in the article above.
- What is an XML sitemap and why should you have one?yoast.com · 2026-03-11T13:52:01+00:00 — Source used in the article above.
- How to Redirect URLs on WordPresswww.semrush.com · 2021-09-22T19:55:00Z — Source used in the article above.
- Neil Patel’s Website Migration Checklistneilpatel.com · 2024-08-12T19:00:00+00:00 — Source used in the article above.
- 301 Redirects: How to Use Them & How They Affect SEOwww.semrush.com · 2020-05-08T15:32:00Z — Source used in the article above.
- What Is a 307 Redirect? An Overview & How to Use Itwww.semrush.com · 2023-12-07T16:41:00Z — Discusses: Does “307 internal redirect” in developer tools mean the server has a redirect configured?
- Would redirecting to a new home page affect SEO?webmasters.stackexchange.com — Source used in the article above.
- 8 Must-Know SEO Best Practices For Developersneilpatel.com · 2021-09-16T13:00:00+00:00 — Source used in the article above.
- How to come back to old URL already redirected with 301? What is the impact to SEO?webmasters.stackexchange.com — Discusses: How should existing redirect rules be handled when reverting to old URLs?
- Redirect Management: An SEO Beginner's Guidewww.warriorforum.com — Source used in the article above.
- The Complete Website Migration Checklist [SEO-Friendly]www.semrush.com · 2019-03-25T13:30:00Z — Source used in the article above.
- How to Create an SEO-Boosting XML Sitemap in 20 Minutes (or Less)neilpatel.com · 2021-09-30T22:00:00+00:00 — Source used in the article above.
- Complete .htaccess File Tutorial: What It Is & How to Use Itwww.semrush.com · 2021-10-06T19:45:00Z — Source used in the article above.
