DELAPARRA
Index
Color
NL
Category: Core glossary

Slug

Explained by Updated

What is Slug?

Slug: A URL-friendly string derived from a page title or name, using only lowercase letters, numbers, and hyphens. For example, the slug for "Getting Started" might be getting-started. A slug is the readable, URL-friendly part of a web address that identifies a page, such as getting-started in /docs/getting-started. It uses only lowercase letters, numbers and hyphens.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Slug

How is Slug used in practice?

Slugs make URLs readable for people and give search engines a hint about the page's topic. They are usually generated from a title, with spaces turned into hyphens and special characters removed or converted.

What should you keep in mind with Slug?

Once a page is published, keep its slug stable. Changing it breaks existing links and loses search rankings unless you add a 301 redirect from the old URL. Make slugs unique, generate them carefully for titles with accents or symbols, and keep them short. Laravel's Str::slug() handles the conversion, and a unique index in the database prevents duplicates.

At a glance

CategoryCore glossary
Explained by
Updated

More Core glossary terms

All terms starting with S

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.