# I rebuilt a WordPress site with AI and kept the same domain. How do I preserve links to older blog posts?

Canonical: https://www.namesilo.com/questions/websites-and-ai/i-rebuilt-a-wordpress-site-with-ai-and-kept-the-same-domain-how-do-i-preserve-links-to-older-blog-posts

Published: 2026-11-20

Last updated: 2026-11-20

Topic: Websites & AI

Export WordPress post URLs and compare them with the rebuilt site's routes.

Preserve each old post URL

Keep matching paths where possible and redirect changed paths directly to their corresponding posts.

Your next steps

Export old permalinks

Match new routes

Test changed URLs individually

Before you proceed

Check images, feeds and internal links too; retaining the same domain alone does not preserve a changed permalink.

First: Export old permalinks.

Next: Match new routes.

Confirm: Test changed URLs individually.

## Sources

- [Google Search: site moves with URL changes](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes)

- [HTTP redirect semantics](https://www.rfc-editor.org/rfc/rfc9110.html#section-15.4)
