What Is an SEO Slug? How to Write URL Slugs That Rank
An SEO slug is the URL-safe part of a page address that tells Google and users what the page is about. Here is how to write slugs that improve both rankings and click-through rate.

Abdul Ghani
Founder · Seovize · Semantic SEO Specialist
Quick answer
An SEO slug is the human-readable part of a URL that identifies a specific page — for example, in seovize.com/services/semantic-seo, the slug is 'semantic-seo'. A well-written slug is short, includes the primary keyword, uses hyphens between words, and accurately describes the page content. Good slugs improve click-through rate from search results and give Google a clear topical signal about the page.
What Is a URL Slug in SEO?
A URL slug is the endpoint of a web address — the specific page identifier after the domain name and any folder path. If your page URL is example.com/blog/what-is-seo, then 'what-is-seo' is the slug. If the URL is example.com/services/local-seo, then 'local-seo' is the slug.
Slugs matter for SEO for two reasons: they give Google a direct signal about what the page covers (a URL containing the keyword 'semantic-seo' tells Google the page is about semantic SEO), and they appear in search result URLs visible to users, which affects click-through rate.
How to Write an SEO Slug
- 1Include your primary keyword: the slug should contain the main keyword you want the page to rank for — 'dallas-seo-company' for a Dallas SEO page, 'semantic-seo' for a semantic SEO service page
- 2Keep it short: shorter slugs are more readable in search results and easier to share. 3–5 words is the sweet spot — 'seo-slug-guide' outperforms 'what-is-an-seo-slug-and-how-do-i-write-one-for-better-rankings'
- 3Use hyphens, not underscores: Google treats hyphens as word separators (dallas-seo = two words: dallas + seo) but treats underscores as connectors (dallas_seo = one word). Use hyphens consistently
- 4Use lowercase only: URLs are case-sensitive on some servers, which can create duplicate content issues. Always write slugs in lowercase
- 5Remove stop words: articles and prepositions (a, the, of, in, for) add length without adding keyword signal. 'how-to-write-seo-slug' is cleaner than 'how-to-write-an-seo-url-slug-for-search-engines'
- 6Never change slugs on live pages without redirects: changing a slug changes the URL, which loses any backlinks and Google authority the old URL had accumulated. Always add a 301 redirect from the old slug to the new one
SEO Slug Best Practices for Different Page Types
- Homepage: no slug needed — the domain itself is the identifier
- Service pages: /services/[service-name] — example: /services/local-seo, /services/semantic-seo
- Blog posts: /blog/[descriptive-keyword-slug] — example: /blog/how-many-keywords-for-seo
- Location pages: /locations/[state]/[city]-[service] — example: /locations/texas/dallas-seo
- Category pages: /[category-name] — example: /industries, /blog
- Avoid dates in slugs for service or evergreen content — /blog/2024/02/what-is-seo will look outdated in 2027, /blog/what-is-seo will not
What Is a Yoast SEO Slug?
Yoast SEO is a popular WordPress plugin, and its 'slug' field is simply the editable URL slug for a given post or page within WordPress. Yoast calls it the 'slug' in its meta box editor. You can edit the slug directly in the Yoast snippet preview, and the same rules apply: short, keyword-rich, hyphenated, lowercase, no stop words.
For non-WordPress sites (Next.js, Webflow, Squarespace, custom builds), the slug is typically set by the filename, the routing configuration, or a CMS field — same principle, different interface.
Slug architecture on Seovize.com
Seovize's entire URL structure was built with slug architecture in mind: /services/[slug], /locations/texas/[city]-[service], /blog/[descriptive-keyword-slug], /industries/[industry]. Every URL gives Google a clear topical signal about the page, and every slug is optimized for click-through from search results. This is part of the technical SEO foundation we build for every client site.
Related service
Website Design — SEO architecture built in
Next.js sites with proper slug structure, schema, and meta from day one — not retrofitted after launch.
Related service
Technical SEO Services
URL structure, redirects, site architecture, and technical optimization for service businesses.