Products SEO & GEO Agent Paid Ads Agent Website Agent Conversion Agent
How it works Pricing FAQ Blog Book a call

Changing a URL slug: avoid lost rankings and duplicate pages

Updated · 6 min read

Short answer Change a slug only when the old one is wrong or misleading, not to add a keyword: Google says words in the URL alone have hardly any effect. If you do change it, send the old address to the new one with a permanent (301) redirect, update your own links, and keep the redirect at least a year.

Want help applying this to your business? Talk it through on a free 30-minute call.

Book a call

Can I change a URL slug without hurting SEO?

Yes, if the old address forwards to the new one. The slug is the last part of a web address: in `yoursite.com/drain-cleaning`, it's `drain-cleaning`. Change it with no redirect and every link, bookmark and Google result pointing at the old address hits a "page not found" error. Google then has to find the new page from scratch.

Google's fix is a permanent redirect done by the server:

"If you need to change the URL of a page as it is shown in search engine results, we recommend that you use a permanent server-side redirect whenever possible." (Google Search Central: Redirects and Google Search)

A 301 (or 308) redirect tells browsers and Google "this page moved for good." Google treats it as a signal that the new address should be the one it shows (same page).

Should I change it at all?

Often, no. A better keyword in the slug is a weak reason:

"From a ranking perspective, the keywords in the name of the domain (or URL path) alone have hardly any effect beyond appearing in breadcrumbs." (Google Search Central: SEO Starter Guide)

Every change also brings a few weeks of movement while Google catches up. Google warns of "temporary fluctuation in site ranking" when URLs move (Google Search Central: Site moves with URL changes).

Good reason to changeWeak reason
The slug names a service you no longer offerAdding one more keyword
It's a random ID, like `/page-1234`Making it a few letters shorter
It has a typo or the wrong cityA tool scored it "not optimized"
Two pages fight over the same topic and you're merging themThe page isn't ranking (the slug is rarely why)

Shopify's product help says the same in its own words: don't edit the product address "too often or the product might not display in search engine results" (Shopify Help Center: Adding and updating products).

How do I change a slug safely?

  1. Write down the old address exactly, including any trailing slash.
  2. Pick the new slug once. Lowercase words joined by hyphens, no spaces or symbols. Google recommends hyphens over underscores and readable words over ID numbers, and notes URLs are case sensitive, so `/Plumbing` and `/plumbing` count as two addresses (Google Search Central: URL structure best practices).
  3. Change it and add the 301 from the old address to the new one (platform steps below).
  4. Test it. Paste the old address into a private browser window. It should land on the new page, not a 404 or the home page.
  5. Fix your own links. Menus, buttons, other pages, your Google Business Profile website field, and ads that point to the page. Google says to change internal links to the new URLs and update your sitemap (Google Search Central: Site moves with URL changes).
  6. Keep the redirect. Google's guidance:
"Keep the redirects for as long as possible, generally at least 1 year." (Google Search Central: Site moves with URL changes)

Point each old address straight at its final page. If you renamed a page twice, redirect the first address to the newest one, not through the middle one. Google can follow up to 10 hops but advises "redirecting to the final destination directly" (same page). Don't send old pages to the home page: Google says that "might be treated as a soft 404 error" (same page).

Does my website platform redirect for me?

Some do, some don't, and the gaps catch owners out.

PlatformRedirects automatically when you change a slug?What to do
WordPressPosts: yes, a 301 to the new address. Pages: no.Add a redirect for pages with a redirect plugin or your host
WixYes, once the site is upgraded with a connected domain. Blog posts: no.For blog posts, add the redirect in the URL Redirect Manager
ShopifyPages: a "Create a URL redirect" option is pre-selectedFor products, check Content → Menus → View URL redirects for an entry
SquarespaceNoAdd a line in URL mappings: `/old-slug -> /new-slug 301`

Sources: WordPress's own code skips hierarchical post types such as pages, with the comment "Do not attempt redirect for hierarchical post types" (WordPress Developer Resources: wp_old_slug_redirect()). Wix: "If you change a page's URL, Wix creates an automatic 301 redirect," after you upgrade and connect a domain, and blog pages need a manual redirect (Wix Help Center). Shopify pages get "a pre-selected option to Create a URL redirect" (Shopify Help Center: Adding and editing pages). Squarespace's examples change the slug, then add the mapping by hand; the field holds about 2,500 lines (Squarespace Help Center: URL mappings).

Limits worth knowing: Shopify redirects work only from addresses that no longer load a page, and cap at 100,000 outside the Plus plan (Shopify Help Center: URL redirects). Squarespace redirects run top to bottom, so an earlier line wins a conflict.

Will changing slugs create duplicate content?

Only if both addresses keep working. If the old slug still loads the same page instead of redirecting, Google sees two copies and picks one to show. It may not be the one you want. A redirect settles it: Google calls redirects "a strong signal" for which address to show (Google Search Central: How to specify a canonical URL).

Duplicate pages aren't a penalty:

"Having duplicate content on your site is not a violation of our spam policies, but it can be a bad user experience and search engines might waste crawling resources on URLs that you don't even care about." (Google Search Central: SEO Starter Guide)

Watch for these copies on small sites:

  • Old and new slug both live after a rename.
  • `page-2` or `copy` slugs left behind after duplicating a page in your builder.
  • Two service pages on the same topic, like `/ac-repair` and `/air-conditioner-repair`. Merge them into one and 301 the other.
  • The same page reachable with and without capital letters.

How do I check it worked?

In Google Search Console, run URL Inspection on the new address, and watch the Page indexing report for the old one. Google describes "Page with redirect" as "a non-canonical URL that redirects to another page": expected, not an error. Old addresses showing up as "Not found (404)" mean a redirect is missing (Search Console Help: Page indexing report).

Example

A cleaning company drops a service

`/carpet-and-upholstery-cleaning` now covers carpet only. The owner renames it `/carpet-cleaning` in Squarespace and adds `/carpet-and-upholstery-cleaning -> /carpet-cleaning 301`. The old Google result still works the same day.

A WordPress site renames a page

A dentist renames the page `/services-2` to `/dental-implants`. WordPress doesn't redirect pages, so the old address shows a 404 until a redirect is added in a plugin. Two weeks later, Search Console lists `/services-2` as "Page with redirect."

A renamed slug, renamed again

A roofer moved `/roofing` to `/roof-repair`, then to `/roof-repair-denver`. Both older addresses should point straight to `/roof-repair-denver`, not chain through the middle one.

FAQ

How long does Google take to show the new slug?

It depends on when Google next crawls it. When a small site moves, Google says most pages take a few weeks (Google Search Central: Site moves with URL changes).

Can I delete the redirect later?

Google says keep it as long as possible, at least a year. Removing it breaks old links from other sites, which keep sending visitors for years.

Is a 302 redirect OK for a slug change?

No. Google doesn't treat a temporary 302 as a sign to show the new address (Google Search Central: Redirects and Google Search). Use 301 or 308.

Should my slug include my city?

Only if the page is about that city. URL words barely affect ranking, so write a slug that tells people what the page is.

Different for you?

Keep learning

NextWordPress Permalink Structure: Which Setting Is Best for SEOWhich WordPress permalink setting to pick (Post name for most sites), what each option does to your URLs, and how to change it later without losing traffic.

Do it yourself

Crawlability checklist: make every page reachable by GoogleA crawlability checklist for a small business site: find orphan pages, robots.txt blocks, broken links, redirect chains and server errors, with free tools.

Ask us one question

One line is enough. We reply by email.

Sources

  1. Google Search Central: Redirects and Google Search
  2. Google Search Central: Site moves with URL changes
  3. Google Search Central: URL structure best practices
  4. Google Search Central: SEO Starter Guide
  5. Google Search Central: How to specify a canonical URL
  6. WordPress Developer Resources: wp_old_slug_redirect()
  7. Wix Help Center: Changing your page URL
  8. Wix Help Center: Setting up a 301 redirect for a page on your site
  9. Shopify Help Center: Adding and editing pages
  10. Shopify Help Center: Adding and updating products
  11. Shopify Help Center: URL redirects
  12. Search Console Help: Page indexing report
  13. Squarespace Help Center: URL mappings