Skip to content

How to design a good slug

Use lowercase words, hyphens, no stop words when possible, keep it under 60 characters, and never change it without a 301 redirect.

Designing a slug that ages well

  1. Lowercase, always

    URLs are case-sensitive on most servers. Cache and cache are two different pages.

  2. Hyphens, not underscores

    Google recommends hyphens. Underscores are invisible in underlined links.

  3. Drop stop words when the meaning survives

    how-to-write-a-slug reads better than how-to-write-a-slug-for-a-blog-in-2026.

  4. Under 60 characters

    Longer slugs get truncated in search results and link previews.

  5. Immutable unless you redirect

    Changing a slug without a 301 breaks backlinks and search ranking.