URL slug
A URL slug is the last part of a URL that identifies the page. On a small site it sets expectations and nudges clicks. Here is how to name, measure and change slugs without losing traffic.
By Théophile Louvart, founder of Porteur · Updated 14 September 2026 · Markdown
Definition and why it matters
A URL slug is the last part of a URL that identifies the page: in /guides/what-is-a-url-slug, the slug is what-is-a-url-slug.
For a small site, the slug is a quick promise. It says what the page is about before the click. It also appears in link previews and in search results as part of the URL path.
The words in a slug are a small signal for search engines and a large one for people deciding to click. That is enough reason to name them with care.
What a good slug looks like
- Lowercase: /pricing, not /Pricing
- Hyphenated words: /image-optimisation, not /image_optimisation or /imageoptimisation
- Short and focused: /seo-for-saas, not /seo-for-software-as-a-service-platforms
- Made of the page’s words: use the terms people search
- Stable: do not rename often
- No dates, IDs or noise unless they carry meaning: /changelog/may-2026 is fine if the date matters
- Skip stop words unless meaning changes: /how-to-fix-404-errors, not /how-to-fix-the-404-errors
Examples on yourproduct.com:
| Before | After | Why |
|---|---|---|
| /Blog/My%20First%20Post | /blog/first-post | Lowercase, hyphens, readable |
| /GUIDES/ID?ref=menu | /guides/getting-started | Remove IDs, say what it is |
| /features/all-in-one-solution | /features/reporting | Name the feature, not fluff |
| /posts/how-to-write-a-good-and-effective-url-slug-for-seo | /guides/url-slug | Short, focused on the topic |
How to read and measure the impact
You cannot split out a slug’s effect perfectly. Treat it as part of the page’s promise. Measure impressions and clicks for that URL and watch click-through rate.
Check how the URL shows in search
Search your brand plus the page topic. Look at how the path appears. If it is long or messy, people may skip it.
Use Search Console’s Performance report
Filter by Page contains the path, compare the last 28 days to the prior 28. Watch clicks and CTR. If the slug is clearer, CTR should not fall.
Scan internal links
List key pages with anchor text and the linking URL. Links that show the clean slug in previews and tooltips build trust.
A fixed page looks like /guides/url-structures, with a matching title and h1 that confirm the same topic. Expect steadier clicks on matching queries like “url structure seo”.
Changing a slug safely
Pick the final slug
Do this once. Keep it short, lowercase and hyphenated, based on the page’s main terms.
Create a 301 redirect
Map the old URL to the new one. Test it with a redirect checker so it goes direct, not via chains.
Update internal links
Change navigation, footers, body links and images that link. Search your codebase for the old path.
Update canonicals and sitemaps
Point rel=canonical to the new URL and refresh your XML sitemap so crawlers see it soon.
Monitor for 404s and soft 404s
Watch logs or Search Console for errors. Fix any missed links or typos fast.
Traps and edge cases
- Auto-generated IDs: /post/ID adds nothing. Replace with words.
- Nested noise: /blog/articles/posts/slug wastes depth. Keep folders meaningful.
- Plural or singular: match the page. /features lists many, /feature/reporting is one.
- Language and accents: use plain ASCII slugs. Avoid encoded characters.
- Versioning: add v2 only if both versions must live. Prefer one canonical URL.
- Merging articles: pick the stronger slug, redirect the weaker and update anchors.
Questions
Write the page’s main words in lowercase, split with hyphens. Remove dates, IDs and filler. Keep it short and stable. Example: /pricing, /guides/getting-started.
In https://yourproduct.com/guides/what-is-a-url-slug, the slug is what-is-a-url-slug. In https://yourproduct.com/pricing, the slug is pricing.
No. The URL is the full address. The slug is just the last part that names the page, after the final slash. It should read like the topic.
It is a small ranking signal and a large human signal. Clear slugs help people choose your result, which can lift CTR. Do not expect ranking jumps from slugs alone.
Leave them out unless they change meaning. Keep /how-to-fix-404-errors. Use dates only when the date is the point, like /changelog/may-2026.
Yes, but do it sparingly. Set a 301 from old to new, update every internal link, refresh canonicals and sitemaps, then monitor for 404s and traffic swings.
Check my site, free
Paste your homepage URL and get a free 30-second read of your site and rivals, with three findings that often start with messy URLs and unclear page targets.
- Free check, no card
- Read-only, your own accounts
- Readable by your agent
Read next
- GlossaryPermalink
- GlossaryCanonical URL
- GuideInternal linking for a small site: which pages link to which
- Glossary301 redirect
- GuideHow to fix 404 errors reported in Search Console
- GuideTitle tag length: what fits, what Google rewrites, and how to write one
- GlossaryURL
- GuideChanging your URL structure: when it is worth it and how to do it