Slug
A slug is the human-readable, URL-friendly portion of a web address that identifies a specific page, typically derived from the page title using lowercase letters, numbers, and hyphens.
The slug is the last segment of a clean URL — in `/glossary/meta-description`, the slug is `meta-description`. Good slugs are concise, descriptive, and include relevant keywords. They help both users and search engines understand what the page is about before visiting it.
Slug best practices: derive from the page title but keep it shorter, use only lowercase letters and hyphens, remove stop words ("a", "the", "and") when they add no meaning, and never change a slug after publication without setting up a 301 redirect.
In Next.js dynamic routes, the slug comes from the URL parameter: `app/glossary/[slug]/page.tsx`. Generate slugs consistently using a helper function that lowercases, removes special characters, and replaces spaces with hyphens.
Example
// Slug generation utility
function generateSlug(title: string): string {
return title
.toLowerCase()
.replace(/[^a-z0-9\s-]/g, "")
.replace(/\s+/g, "-")
.replace(/-+/g, "-")
.trim();
}
// "Core Web Vitals" → "core-web-vitals"
// "What is E-E-A-T?" → "what-is-e-e-a-t"Related terms
URL Structure
URL structure refers to the format, hierarchy, and naming conventions of your website's addresses, which communicate page content and site organization to both users and search engines.
Permalink
A permalink (permanent link) is a URL that is intended to remain unchanged indefinitely, serving as a stable reference to a specific piece of content.
301 Redirect
A 301 redirect is an HTTP status code that permanently redirects one URL to another, telling search engines to transfer ranking signals (link equity) to the new URL.
Stop shipping broken SEO
Indxel validates your metadata, guards your CI/CD pipeline, and monitors indexation — so you never miss an SEO issue again.