Free auditStart free
GuideSEO issue · On-page

Underscores in URLs

Understand Google's recommendation for hyphenated URLs, decide whether legacy paths should change, and migrate with redirects and updated links.

4 min
read
3
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

Google recommends hyphens instead of underscores when separating words in URLs because they help users and search engines identify concepts. For new pages, use readable hyphenated paths. For established URLs, do not rename pages just to replace underscores; change them only as part of a deliberate migration with direct permanent redirects, updated internal links, canonicals, and sitemap entries.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
02How it works

Plan a URL migration before changing paths

  1. 01

    Export the current URL inventory

    Collect canonical URLs, status codes, internal links, sitemap entries, and Search Console page data. Identify which underscore paths have traffic, backlinks, or business value.

  2. 02

    Map old URLs one-to-one

    Create a table from each old path to its closest new destination. Do not send unrelated old URLs to the home page; Google says redirecting many old URLs to one irrelevant destination, such as the new home page, can confuse users and might be treated as a soft 404 error. Redirecting several old pages to one new page is fine when you consolidated their content.

  3. 03

    Create permanent server-side redirects

    For URLs that truly moved permanently, use HTTP 301 or 308 redirects when possible. Avoid chains; Googlebot can follow up to 10 hops, but Google advises redirecting to the final destination directly and, if that is not possible, keeping a chain ideally to no more than 3 redirects.

  4. 04

    Update every first-party signal

    Change internal links, canonical tags, hreflang references, structured data URLs, and sitemap entries to the new paths. Keep the redirects for as long as possible; Google says generally at least 1 year.

  5. 05

    Monitor and fix exceptions

    Crawl both old and new paths, inspect 404s and redirect destinations, and monitor Search Console indexing and performance by URL during the move.

03Worth knowing

Keep the path readable and stable

Describe the page in a few words

Google recommends readable words rather than long IDs when possible. Avoid adding every keyword variation to the path.

Use your audience's language

Keep terms natural for the people who use the site; Google recommends words in the audience's language when practical.

Use one separator convention

For new paths, separate words with hyphens. Avoid mixing underscores, hyphens, and joined words across a single route family.

Keep URLs case-consistent

Google treats paths with different capitalization as distinct URLs, so use a consistent case and route rule.

Review parameters separately

Remove unnecessary parameters only when they do not change the page. A short clean slug is not a substitute for canonicalizing duplicate parameter versions.

For a publisher, use the article topic in the path and keep it stable if the headline changes. For a product catalog, encode the durable product identity rather than every filter state. For international pages, use the appropriate language and retain explicit locale structure where it helps users navigate.

04Explained

Verify the new and old routes

After deployment, request a sample of old URLs and confirm each returns one permanent redirect to the correct live page. Request the new URL and check it returns a successful response, points to itself as canonical when appropriate, and appears in the current sitemap. Recrawl internal links to confirm that the site now points directly to new URLs.

Google's site move documentation says you may see ranking fluctuations while Google recrawls and reindexes. As a general rule, for medium-sized websites it can take a few weeks or more for Google to gradually start showing the new URLs, and longer for larger sites. Treat that as a planning expectation, not a guarantee. Review redirect chains and redirect loops before closing the migration.

If no other URL or site change is planned, leave the underscore path in place. Use the recommendation for new routes and invest the saved effort in page usefulness, internal links, and resolving actual crawl errors.

Sources · 3

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  1. 01URL structure best practices for Google Searchdevelopers.google.com · checked 2026-10-24
  2. 02Site Moves and Migrationsdevelopers.google.com · checked 2026-10-24
  3. 03Redirects and Google Searchdevelopers.google.com · checked 2026-10-24
Questions

Asked a lot.

2 questions people ask next, answered from the sources on this page.

01Does Google understand underscores in URLs?

Google's URL structure guidance recommends hyphens instead of underscores to separate words, as it helps users and search engines better identify concepts in the URL. The guidance does not describe underscore URLs as ineligible for Search.

02Should I change every URL that contains an underscore?

No. Keep stable URLs unless there is a broader migration reason. If a URL does move, map it to a relevant destination, use a direct permanent redirect, and update internal links, canonicals, and sitemap entries.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane