GoWin Tools
Tools
โ† Slug Generator

Slug Generator ยท 5 min read

Changing a URL Slug Without Losing Your SEO Rankings

A URL change without proper redirects is one of the most common and costly SEO mistakes. Here is how to change a URL slug safely, preserving all of the link equity and search rankings the old URL accumulated.

Why URL Changes Are Dangerous

Every URL that ranks in search results has accumulated a combination of signals over time: backlinks from other websites pointing to it, engagement data from past searchers, and Google's crawl history. This accumulated value is sometimes called "link equity" or "PageRank."

When you change a URL without any redirect, Google sees the old URL go to a 404 (page not found) error. The old URL โ€” with all of its accumulated equity โ€” effectively disappears. The new URL starts from zero. Rankings are lost, sometimes permanently.

This is one of the most common and costly mistakes in website management. Sites have lost 50โ€“90% of their organic traffic by migrating to a new URL structure without proper redirects.

The Solution: 301 Permanent Redirect

A 301 redirect (HTTP status code 301, "Moved Permanently") tells browsers and search engines that a URL has permanently moved to a new address. When Googlebot follows a 301 redirect, it:

  1. Recognises the old URL has permanently moved
  2. Updates its index to substitute the new URL for the old one
  3. Transfers the accumulated link equity from the old URL to the new URL
  4. Eventually stops crawling the old URL as a separate entity

Google's John Mueller has confirmed that 301 redirects pass "the full" PageRank (link equity) from old URL to new URL, with minimal loss. Earlier statements suggesting significant link equity loss through redirects have been revised โ€” current guidance is that a proper 301 redirect preserves essentially all of the old URL's value.

Step-by-Step: Changing a URL Slug Safely

Step 1: Decide on the new slug before doing anything

Before making any changes, finalise the new URL. Apply best practices: all lowercase, hyphens as separators, concise and descriptive, no stop words. Make sure the new slug accurately reflects the page content. If you are going to change it, change it once to the right slug โ€” changing it again later means another round of redirect management.

Step 2: Set up the 301 redirect first

Set up the redirect before you change the URL in your CMS. This way, the moment the old URL stops being served, the redirect is already in place. The sequence: add redirect โ†’ then change URL.

How you add a redirect depends on your platform:

  • WordPress: Use the Redirection plugin (free) or Yoast SEO's redirect manager
  • Shopify: Online Store โ†’ Navigation โ†’ URL Redirects
  • Next.js / static sites: Add to redirects in next.config.js or your hosting platform's redirect rules
  • Apache: Redirect 301 /old-slug /new-slug in .htaccess
  • Nginx: return 301 /new-slug; in the server block
  • Cloudflare Pages: Add to _redirects file or Cloudflare's redirect rules

Step 3: Update internal links

Search your site for all internal links pointing to the old URL and update them to point directly to the new URL. You do not strictly need to do this for SEO โ€” the redirect will handle them โ€” but it removes one unnecessary redirect hop, which speeds up page loading and is cleaner. Most CMS platforms have a "search and replace" function for this.

Step 4: Update the canonical tag

If the page has a canonical tag (<link rel="canonical" href="old-url">), update it to the new URL. This signals to Google that the new URL is the authoritative version.

Step 5: Update your sitemap

Remove the old URL from your XML sitemap and add the new URL. Submit the updated sitemap to Google Search Console. This accelerates Google's discovery and indexing of the new URL.

Step 6: Monitor in Google Search Console

After the change, monitor the Coverage and Performance reports in Google Search Console. You should see the old URL's impressions and clicks transfer to the new URL over days to weeks. If rankings drop sharply and do not recover after 4โ€“6 weeks, verify that the redirect is working correctly (use a redirect checker tool or curl with -I flag to inspect response headers).

How Long Does the Transfer Take?

Google typically processes 301 redirects and transfers rankings within 2โ€“6 weeks for most sites. For high-authority sites with frequently crawled pages, it can happen in days. For low-crawl-frequency sites with sparse backlinks, it can take longer.

During the transition period, you may see a temporary ranking fluctuation โ€” this is normal. The old URL gradually drops from the index as the new URL takes over. If the redirect is properly configured, the new URL will eventually reach approximately the same ranking as the old URL.

When Not to Change a URL

Not every imperfect URL is worth changing. The potential gains from a slightly better slug (a modest SEO improvement, cleaner appearance) must be weighed against the risks and effort of the change. In general, avoid changing URLs for:

  • Pages with very few backlinks or low search traffic (nothing to lose, but also nothing to gain)
  • Pages on sites undergoing a major migration (consolidate URL changes into one migration event with one set of redirects)
  • URLs that have been stable for years and are ranking well (the marginal improvement is rarely worth the disruption risk)

Change URLs when: the current URL is genuinely harmful (contains dates that make it look stale, contains keywords that are wrong or embarrassing, is so long it gets truncated in search results).

Generate a better URL slug โ†’

References

  1. Google Search Central. (2023). Move a site with URL changes. developers.google.com.
  2. Mueller, J. (2023). Various Search Central office-hours on redirects and URL changes. youtube.com/GoogleSearchCentral.
  3. Google. (2023). HTTP redirects. developers.google.com/search/docs/crawling-indexing/301-redirects.
  4. Fishkin, R., & Moz Staff. (2023). 301 redirects. moz.com/learn/seo/redirection.
  5. Schwartz, B. (2020). How long does Google take to pass link authority through 301 redirects? Search Engine Roundtable.