Technical SEO · Glossary · Updated Apr 2026

URL slug(URL)

Definition

A URL slug is the human-readable end portion of a URL path — the part after the last slash that identifies the specific page. Best practice: short, lowercase, hyphen-separated words that describe the page and include the primary keyword when natural. Stable slugs preserve link equity over time.

Find related

Long definition

In https://example.com/blog/url-slug/, the slug is url-slug. It's the only segment most authors fully control on a per-page basis, and it's read by both humans (in SERPs, browser bars, shared links) and crawlers (as a weak relevance signal and a stable identifier).

The conventions search engines and users both reward:

  • Lowercase only. Web servers on case-sensitive filesystems (Linux/Apache/Nginx) treat /Page and /page as different URLs — a duplicate-content trap. Lowercase rules eliminate this.
  • Hyphens, not underscores. Google has confirmed since 2005 that it splits words on hyphens but treats underscores as joiners. cheap-flights parses as two words; cheap_flights parses as one token.
  • Words, not IDs. /products/wireless-headphones beats /products/p?id=48211 for click-through, sharing, and topical relevance.
  • Short. Three to five words covers most cases. Stuffing every modifier into the slug ("best-cheapest-wireless-bluetooth-noise-cancelling-headphones-2026") signals low quality and gets truncated in SERPs.
  • Stop words selectively. Drop "the", "of", "for" when removal doesn't change meaning. Keep them when it does.
  • Stable. Once published, don't change a slug to "improve" it. Every change costs you a 301 redirect, a small loss in equity, and broken external links you don't control. The keyword update is rarely worth it.

The slug is part of the canonical URL. Whatever shape you pick must match across <link rel="canonical">, sitemap, internal links, and external campaigns.

Common misconceptions

  • "Including the keyword in the slug is a major ranking factor." It's a minor signal. Google has stated it's "a very small ranking factor" — content quality, intent match, and links dominate. Use the keyword when it fits naturally; don't contort the slug to force it in.
  • "Longer slugs rank for more terms." They don't. Excess words dilute the focus and rarely match how people search. Match the primary intent precisely.
  • "You should localize the slug for every language." For most international setups, yes — /es/zapatos reads better and signals language to users. But it's not a ranking requirement; hreflang does the language-targeting heavy lifting.
  • "Trailing words like the year update automatically." They don't. A slug /best-laptops-2024 is frozen until you redirect. If you want a yearly refresh, plan the redirect strategy upfront or use a year-agnostic slug.