Skip to content

FAQ

Frequent questions about slugs: how long, which characters, how to change, and how they differ from an ID.

How long should a slug be?

Under 60 characters. Longer slugs get truncated in previews and search results.

Can a slug contain numbers?

Yes. 2026-cache-trends is a valid slug.

How do I change a slug without losing SEO?

Add a 301 redirect from the old URL to the new one. Google transfers ranking through 301s over time.

Is a slug the same as an ID?

No. An ID is opaque and machine-generated; a slug is readable and human-generated. Both can identify the same resource.