Skip to content

Designing permalinks that last

Use dated or stable identifiers, avoid deep nesting, never change without a 301, and never include the domain when the content may move.

Permalinks that survive

  1. Stable structure

    /<year>/<slug>/ or /posts/<slug>/. Not /<category>/<subcategory>/<slug>/, which breaks when you reorganize the taxonomy.

  2. Never include the full domain in the content

    https://example.com/posts/42/ breaks when the site moves to example.org. Use relative permalinks in posts; the domain is set by the rendering tool.

  3. 301 on every change

    When you must change a permalink, redirect the old one. Google transfers ranking over 301s, but only over 301s.

  4. Never delete old permalinks

    Even a 410 Gone is worse than a 301: Google deindexes the URL and any backlink to it loses its target.