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

URL slug best practices: rules, with good and bad examples

Updated · 6 min read

Short answer Name the page in a few plain words your customers use, all lowercase, joined by hyphens: /water-heater-repair/, not /page_id=42 or /Services_2024. Google says keywords in the URL path alone have hardly any effect on ranking, so write slugs for people. Don't rename a slug that already ranks; if you must, add a 301 redirect.

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

Book a call

URL slug rules, with good and bad examples

The slug is the end of a web address that names one page. In `example.com/drain-cleaning/`, the slug is `drain-cleaning`. Seven rules cover almost every page a service business has:

RuleGoodBad
Name the page in plain words/drain-cleaning//page?id=4821
Use the words customers say/furnace-repair//thermal-solutions/
Separate words with hyphens/tax-preparation//tax_preparation/ or /taxpreparation/
All lowercase/teeth-whitening//Teeth-Whitening/
Cut filler words/kitchen-remodeling//our-amazing-kitchen-remodeling-services-page/
No dates or prices that will age/bookkeeping-services//bookkeeping-2026-special-199/
One page, one slug/roof-repair/ only/roof-repair/ and /roof-repair-2/ with the same text

Google's URL guide says it plainly:

"When possible, use readable words rather than long ID numbers in your URLs." (Google Search Central: URL structure best practices)

Does the URL slug affect SEO ranking?

Barely. Google's SEO Starter Guide puts keywords in the URL on its list of things not worth your focus:

"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)

Breadcrumbs are the trail of words Google shows above a result, such as "example.com › services › drain-cleaning". Google's guide to search results calls them part of a result's visible URL, and the Starter Guide says Google builds them from the words in the URL. So a readable slug helps a searcher see what the page is before clicking. It also reads well when someone texts the link to a friend. That is the real job of a slug. Your title, heading and page text do the ranking work; see on-page SEO for service pages.

How long should a URL slug be?

Google sets no character or word limit. Aim for the shortest phrase that still names the page, usually two to four words for a service page:

PageToo longRight
Service/we-offer-professional-emergency-plumbing-services-24-7//emergency-plumbing/
Blog post/how-much-does-it-cost-to-replace-a-roof-in-2026-a-complete-guide//roof-replacement-cost/
About/about-our-family-owned-company-since-1998//about/

Small words like "the", "a" or "our" can usually go. Google has no rule about them, so keep one if the slug reads oddly without it.

Should the slug include the keyword or the city?

Include the main service words once, because that's what the page is about. Don't repeat them or pile up variations: /plumber-plumbing-plumbers-mesa/ tells a reader nothing more than /plumber-mesa/. To pick the words, see keyword research for a local business.

Add a city only when the page is really about that city. If one service page covers your whole area, leave the city out. If you build separate city pages, each needs content that differs, or Google may treat them as doorway pages; see city pages for service areas.

Hyphens, underscores, capital letters and symbols

Use hyphens. Google explains why:

"[W]e recommend using hyphens (-) instead of underscores (_) to separate words in your URLs, as it helps users and search engines better identify concepts in the URL." (Google Search Central: URL structure best practices)

Run-together words such as /greendress are on Google's "not recommended" list too.

Use lowercase. Google treats /APPLE and /apple as two different URLs. If your site shows the same page for both, Google's guide asks you to "convert all text to the same case" so it can tell they are one page.

Skip symbols like &, %, ?, # and spaces in a slug. Some have special jobs in a web address: Google's guide says reserved characters must be percent-encoded (turned into codes like %20), and Google Search generally doesn't support # fragments that change a page's content.

What about French, Spanish or accented words?

Use the language your customers search in. Google's guide says to use "words in your audience's language in the URL". A Montreal renovation company writing for French searchers can use /renovation-cuisine/ for a French page.

Accented letters are allowed, but links carry them as codes: Google's own example turns "gemüse" into gem%C3%BCse. Many sites drop the accent so the link stays readable when copied. For a full second-language site, see multilingual website SEO.

Should you change an old URL slug?

Usually not. If a page already ranks or gets links, a nicer slug gains you almost nothing and adds risk. Change it only when the old one is wrong or misleading, such as /2023-promo/ on a page that is now your main service page.

When you change one, send the old address to the new one with a permanent (301) redirect:

"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)

For site-wide URL changes, Google says to keep redirects "for as long as possible, generally at least 1 year". Where to do it:

PlatformHow the redirect happens
WordPressFor posts, WordPress tries to find the old slug and send visitors to the new one on its own (WordPress developer reference). Test it; for pages, add a redirect with a plugin.
ShopifyAdd one in the store's URL redirects tool (Shopify Help Center)
SquarespaceAdd a 301 line in the URL mappings panel (Squarespace Help Center)
Other buildersSearch the builder's help for "301 redirect"

Then test: paste the old address into a browser and check it lands on the new page. If traffic fell after you changed many URLs at once, see traffic dropped after a website redesign.

Example

Illustrative cases with invented numbers.

A plumber in Arizona (US dollars)

The site builder made /service-page-3/ for water heaters. The page is two weeks old and has no links yet. Rename it /water-heater-repair/ now, before anything points to it. If an old address has been shared, add a 301 from it anyway; it costs nothing.

A bookkeeper in Calgary (Canadian dollars)

A blog post lives at /2022/03/15/the-top-10-tips-for-small-business-bookkeeping-in-alberta/. It brings 300 visits a month from Google. Leave the address alone. Update the post's content and title instead. The slug isn't holding it back.

A dental office adding a service page

New page for clear aligners. Bad: /Invisalign_Clear_Aligners_Best_Dentist_Toronto/. Good: /clear-aligners/. If you sell one brand by name and patients search for it, /invisalign/ is fine too.

FAQ

Is there a maximum URL slug length?

Google publishes no limit for slugs. Keep it to the words that name the page; a reader should grasp it at a glance.

Should I put my keyword at the start of the slug?

It doesn't matter for ranking. Google says URL keywords have hardly any effect beyond breadcrumbs, so put the words in the order a person would say them.

Does the slug need to match the page title?

No. The title can be a full sentence; the slug is a short name. "How much does a new roof cost?" can live at /roof-replacement-cost/.

Should I remove "and" or "the" from a slug?

You can. Google has no rule on these small words; cut them when the slug still reads clearly.

Different for you?

Keep learning

NextFuture-Proof URL Slugs: Skip Dates, Numbers and RewritesA future-proof URL slug names what the page is about and leaves out years, counts, prices, staff names and file endings, so updates never force a new address.

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: URL structure best practices for Google Search
  2. Google Search Central: SEO Starter Guide
  3. Google Search Central: Google Search visual elements gallery
  4. Google Search Central: Redirects and Google Search
  5. Google Search Central: Site moves with URL changes
  6. WordPress Developer Resources: wp_old_slug_redirect()
  7. Shopify Help Center: Creating and managing URL redirects
  8. Squarespace Help Center: URL mappings