Skip to content
Koit Academy

Websites & SEO

·

7 min read

How to Change a URL Without Losing SEO, Step by Step

Change a page's URL without losing its rankings: choose the new slug, redirect with a 301, update links and the sitemap, and keep the redirect for a year.

By Koit Academy

Sooner or later a page needs a new address. The slug has a year in it that has passed, the structure of the site has changed, a product has been renamed, or the original address was simply a mess of numbers and parameters. Changing it is easy. Changing it without losing the visits, links and search positions the old address had built up takes a few more steps, in the right order.

None of them is difficult. The pages that lose traffic after a URL change are almost always the ones where a step was skipped, usually the redirect.

Decide whether it is worth it

A URL change is not free. Google’s guidance on moving pages says to expect temporary fluctuation in rankings while the change is processed. For a page that already ranks and gets traffic, the new address needs a real reason: a misleading or outdated slug, a reorganized site, a merge of two pages. A slightly better keyword in the slug is rarely enough on its own.

Good reasons include:

  • A date in an evergreen page’s address, which makes an updated page look old.
  • Parameters or ID numbers where words would tell people what the page is.
  • A site reorganization where the old path no longer fits.
  • Two pages being merged into one.

Step 1: choose the new address once

The worst outcome is changing an address twice. Choose a slug that will not need changing again: short, lowercase, words separated by hyphens, no date for a page you will update, no word like “new” or “latest” that will stop being true. Google’s URL guidelines recommend readable words and hyphens rather than underscores between them.

The URL slug generator turns a page title into a clean slug, folds accented letters to plain ones, and warns when a slug contains a year.

Step 2: map every old address to a new one

For a single page this is one line. For a section or a site, it is a spreadsheet with two columns: old address and new address. Google’s site move guidance calls this mapping the important first step. Every old address that has links or traffic needs a destination, and the destination should be the closest equivalent page, not the home page.

Step 3: redirect with a permanent, server-side redirect

A 301 (or 308) redirect tells browsers and search engines the page has moved for good. Google treats a permanent redirect as a signal that the new address should be the one shown in results, and its site move guide notes that permanent redirects do not cause a loss in PageRank.

ServerRule for /2024-roof-cost-guide/ to /roof-cost-guide/
Apache (.htaccess)RedirectMatch 301 ^/2024-roof-cost-guide/?$ /roof-cost-guide/
Nginxlocation = /2024-roof-cost-guide/ { return 301 /roof-cost-guide/; }
Cloudflare Pages or Netlify/2024-roof-cost-guide/ /roof-cost-guide/ 301

The 301 redirect generator writes these rules for a whole list of pairs and checks the list for chains and loops before you deploy it.

A redirect catches people and crawlers arriving at the old address. Your own pages should not rely on it. Google’s move guidance recommends changing internal links to point at the new addresses directly: the menu, the footer, links inside articles, buttons. Each internal link that still goes through a redirect is an extra request for every visitor and every crawl.

Search the site for the old path. In most content systems a search of the database or an export of all pages finds every occurrence.

Step 5: update the sitemap

The sitemap should list only final addresses. Remove the old URL, add the new one, and submit the updated sitemap in Search Console so Google learns about the new address. The XML sitemap generator rebuilds a sitemap from a list of URLs, with relative addresses and duplicates removed.

Step 6: keep the redirect for at least a year

Redirects are not temporary scaffolding. Google’s guidance is to keep them in place as long as possible, and generally for at least a year, so signals move to the new addresses. Old links on other sites, bookmarks and printed material may keep sending visitors to the old address for years; removing the redirect turns all of them into errors.

Changing a whole section at once

When many addresses change together, such as a blog moving from /blog/2024/05/title/ to /blog/title/, the same steps apply at a larger scale.

  • Map from a full list of old addresses, taken from the sitemap, an export from the content system or a crawl, not from memory. Pages nobody remembers still have links.
  • Look for a pattern. If every old address can be turned into its new one by a rule, a single pattern-based redirect on the server may replace hundreds of individual lines. Test it against real addresses before relying on it.
  • Stage it. Put the redirects in place on a test copy of the site and check a sample of old addresses before going live.
  • Move in one step, then leave it alone. Changing addresses and then changing them again a month later creates chains and resets the settling period.

A redirect passes visitors and signals from links on other sites to the new address, so nothing has to be done for the move to work. Still, for the handful of most valuable links, such as a supplier’s listing, a local directory or a press article, it is worth asking the site owner to update the link. A direct link avoids the extra hop and survives if the redirect is ever removed by mistake.

Mistakes that cost the most

  • No redirect at all. The old address returns a 404, every link to it is wasted, and the new page starts from nothing.
  • Redirecting everything to the home page. Visitors looking for a specific page land somewhere else, and search engines may treat such redirects like missing pages.
  • Chains. Changing an address that was already redirected, so /a goes to /b and /b to /c. Point /a straight at /c.
  • A temporary redirect for a permanent move. A 302 tells search engines to keep the old address; the difference is explained in 301 vs 302 redirects.
  • Changing many things at once. New addresses, new content and a new design in one week make it impossible to tell which caused a drop.

A short checklist for a single page

For the most common case, one page getting a better address, the whole job fits on a few lines:

  1. Choose the new slug and publish the page at the new address.
  2. Add a 301 redirect from the old address to the new one, and test it.
  3. Update the links to the page from the menu, other pages and posts.
  4. Update the sitemap and the page’s canonical tag to the new address.
  5. Check the redirect again a week later, and leave it in place.

A new domain is a bigger job

Everything in this post applies when the domain itself changes, with more at stake, because every address on the site moves at once. The same mapping and permanent redirects are the core of it. On top of those, verify the new domain in Search Console and use the change of address tool there, keep the old domain registered and redirecting for as long as possible, and update everything outside the site that carries the old address: profiles, listings, email signatures and printed material. Plan it for a quiet period of the year rather than the busiest one.

What to watch afterwards

For the first few weeks, watch three things. The old address should return a 301 to the new one, not a 404 and not a chain; check it in a browser’s network panel or with any header checker. The new address should appear in Search Console’s indexing reports as it is crawled. And traffic to the page, combined across old and new addresses, should return to its previous level. Some movement in the first weeks is normal; a drop that persists after a month usually points to a missed redirect or internal links still pointing at the old address.

Sources, read November 14, 2026:

  • Google Search Central, Site moves with URL changes: mapping old to new URLs, permanent server-side redirects, updating internal links and sitemaps, keeping redirects for at least a year, and expecting temporary fluctuation.
  • Google Search Central, Redirects and Google Search: permanent redirects as a canonical signal.
  • Google Search Central, URL structure best practices: readable words and hyphens between them.