In short
The slug is the part of the URL that identifies the page itself: infusion-the-vert in https://example.com/guides/infusion-the-vert/. Most CMSs build it from the title, which often produces long addresses, with stop words or badly split apostrophes. The check consists of reviewing and shortening the slug of every important page before it is published, configuring your tool’s slug generator, then fixing, with a redirect, the rare slugs that are genuinely faulty. The overall URL scheme (prefixes, sections) belongs to the check create short, stable and descriptive URLs (opens in a new tab).
Why it matters
The slug is read, not just crawled. Google shows part of the URL in results, as a breadcrumb, and recommends readable words rather than IDs, in the audience’s language, separated by hyphens. A clear slug reassures before the click, makes sense in a share, an email or an AI assistant’s citation, and says what the page is about when the title is not shown.
Its ranking effect is minimal. Google’s Starter Guide states that keywords in the domain name or in the URL path have hardly any effect beyond appearing in the breadcrumb. That finding sets the rule: a good slug is decided at creation, and you do not change an existing slug to slip a keyword into it.
The automatic generator often gets it wrong. It copies the whole title, keeps stop words, runs words together around apostrophes (temperature-de-leau), adds -2 in case of a duplicate, or keeps the year of a “2026” title. Once the page is published and linked, fixing it costs a redirect and a risk.
What it improves
- Click-through rate A readable address in results and shares inspires trust. A plausible effect, not measured by search engines.
- Sharing and citations An understandable link is copied more readily, and stays meaningful in an AI answer or a document.
- Stability A slug with no date or variable element will not need to change.
- Analysis Consistent slugs make filtering easier in Search Console and the analytics tool.
- Rankings Negligible direct effect, according to Google.
How to check
On one page: read the slug aloud. It should describe the topic in three to five words, without accents, in lowercase, with hyphens, with no date and no unnecessary word.
Across the whole site: export the indexable URLs (a Screaming Frog crawl, the sitemap or a CMS export) to Google Sheets, URLs in column A, then add these checks:
Slug (last segment):
=REGEXEXTRACT(A2,"([^/]+)/?$")
Number of words in the slug:
=COUNTA(SPLIT(B2,"-"))
Duplicate suffix (-2, -3):
=IF(REGEXMATCH(B2,"-[0-9]$"),"Probable duplicate","")
Merged apostrophe (dl, ld, qu, sl… at the start of a word):
=IF(REGEXMATCH(B2,"(^|-)(d|l|qu|s|n|j)[aeiouyh]"),"To review","")
Year:
=IF(REGEXMATCH(B2,"20[0-9]{2}"),"Date","")
Stop words:
=IF(REGEXMATCH(B2,"(^|-)(le|la|les|de|des|du|un|une|et|pour|avec|en)(-|$)"),"Stop words","")
The apostrophe and stop word checks target French slugs. The apostrophe check produces false positives (lait, santé…): it flags slugs to review, not errors.
Expected result: slugs of three to five words, with no numeric duplicate suffix, no unnecessary year and no encoded accent. Flagged cases are rare and each one has a reason.
How to implement
Before you start
Writing rule, to give to everyone who publishes:
| Page title | Generated slug | Slug to keep |
|---|---|---|
| Température de l'eau pour le thé vert : le guide | temperature-de-leau-pour-le-the-vert-le-guide |
temperature-eau-the-vert |
| Entretien chaudière à Nantes (tarifs 2026) | entretien-chaudiere-a-nantes-tarifs-2026 |
entretien-chaudiere-nantes |
| Cœur d'artichaut & thé vert : 10 conseils | coeur-dartichaut-the-vert-10-conseils |
the-vert-artichaut |
| Planifia vs tableurs : pourquoi changer | planifia-vs-tableurs-pourquoi-changer |
planifia-vs-tableur |
Fictional examples, from French sites. A four-question procedure:
- What is the topic in three to five words? Start from the page’s main keyword, the one in the keyword-to-page map (opens in a new tab).
- Which words should go? Articles, prepositions, “guide”, “complete”, “how to”, unless they change the meaning (
before-afterremains useful). - What will change? Year, number (“10 tips”), price, name of a promotion: remove them.
- Does the slug already exist? If the CMS adds
-2, a similar page exists: check that it is not duplicate content before choosing another slug. See detect keyword cannibalization (opens in a new tab).
For a page already published, only change the slug if it is misleading, faulty or contains a date that is no longer true. On the same day: a 301 redirect from the old address, updated internal links and sitemap. Redirect configurations by server and by CMS are detailed in create short, stable and descriptive URLs (opens in a new tab).
WordPress
Versions WordPress 6.4 to 7.1 (block editor).
WordPress creates the slug from the title on the first save. It strips accents and special characters, runs together words separated by an apostrophe (l'eau becomes leau) and adds -2 if the slug is already taken.
- Edit before publishing: in the block editor, post settings panel, Link field (slug). Shorten it before publishing.
- After publishing, changing the title no longer changes the slug: this is intentional. If you change a post’s slug, WordPress redirects the old one; for a page, a category or a tag, add the redirect yourself (Redirection, or Rank Math’s Redirections module).
- Categories and tags:
Posts > Categories, “Slug” field. - Media: WordPress creates an attachment page whose slug repeats the file name. Name images before uploading. See use descriptive file names (opens in a new tab).
Shopify
Versions Shopify admin, all plans, November 2026.
The handle (slug) of a product, collection, page or blog post is suggested from the title at creation. Edit it in the item’s “Search engine listing” section, URL handle field, before saving for the first time. Check that it contains no accent or encoded character.
When changing it later, leave Shopify’s redirect option checked. For bulk imports, the products CSV file has a Handle column: prepare the handles there rather than letting the import derive them from the titles.
PrestaShop
Versions PrestaShop 8 and 9.
The friendly URL (link_rewrite) is set in the SEO tab of each product, category or CMS page. Leave accented URLs turned off in Shop Parameters > Traffic & SEO. On a multilingual catalog, fill in the friendly URL in every language: otherwise the generated value repeats the source-language name or a badly transliterated one. See translate slugs (opens in a new tab).
Magento
Versions Magento Open Source and Adobe Commerce 2.4.6 to 2.4.9.
The URL key is set in the Search Engine Optimization section of the product or category page. It is derived from the name at creation. Before changing it on a live product, check that Stores > Settings > Configuration > Catalog > Catalog > Search Engine Optimization, option “Create Permanent Redirect for URLs if URL Key Changed”, is set to Yes.
Drupal
Versions Drupal 10 and 11, Pathauto module 8.x-1.x.
With Pathauto, the pattern guides/[node:title] repeats the whole title. Two settings reduce the noise in Configuration > Search and metadata > URL aliases > Settings (/admin/config/search/path/settings): the maximum alias length and the list of strings to remove. For important content, uncheck “Generate automatic URL alias” in the content form and enter the alias by hand.
Wix, Squarespace and Webflow
Versions Wix, Squarespace 7.1 and Webflow, all plans, November 2026.
The slug of each page, blog post or collection item is edited in the SEO settings or the page settings. On Wix and Webflow, the slug of a blog post or collection item is created from the title: review it before publishing. After a change, check that the platform has created a redirect, or add one in its redirect manager.
Laravel
Versions Laravel 11 to 13, with PHP 8.3 or later (typed class constant).
Generate the slug at creation, suggest it to the editor, then never regenerate it. Str::slug() with the fr language transliterates correctly but removes no words:
use Illuminate\Support\Str;
Str::slug("Température de l'eau pour le thé vert", '-', 'fr');
// temperature-de-leau-pour-le-the-vert
Add a cleanup of apostrophes and stop words before suggesting the slug, and keep the field editable in the admin interface:
// app/Support/SlugSuggester.php
namespace App\Support;
use Illuminate\Support\Str;
class SlugSuggester
{
private const array STOP_WORDS = ['le', 'la', 'les', 'l', 'de', 'des', 'du', 'd', 'un', 'une', 'et', 'a', 'au', 'aux', 'pour', 'en', 'sur', 'avec'];
public static function suggest(string $title, int $maxWords = 5): string
{
$words = collect(explode('-', Str::slug(str_replace(["'", '’'], ' ', $title), '-', 'fr')))
->reject(fn (string $word): bool => in_array($word, self::STOP_WORDS, true))
->reject(fn (string $word): bool => preg_match('/^20\d{2}$/', $word) === 1)
->take($maxWords);
return $words->implode('-');
}
}
SlugSuggester::suggest("Température de l'eau pour le thé vert : le guide") returns temperature-eau-the-vert-guide. It is a suggestion: a human removes guide if the word adds nothing. Add a unique constraint on the slug column and, in the form request, the rule ['required', 'alpha_dash', 'max:80', Rule::unique('guides')->ignore($guide)] (class Illuminate\Validation\Rule).
Next.js
Versions Next.js 15 and 16; the function uses no Next.js-specific API.
Next.js does not generate slugs: they come from the CMS or from the file name. If you compute them yourself, transliterate explicitly, because normalize('NFD') does not decompose œ and æ:
// lib/slugify.ts
export function slugify(text: string): string {
return text
.normalize('NFD')
.replace(/[̀-ͯ]/g, '')
.replace(/œ/gi, 'oe')
.replace(/æ/gi, 'ae')
.toLowerCase()
.replace(/&/g, ' et ')
.replace(/[^a-z0-9]+/g, '-')
.replace(/^-+|-+$/g, '')
}
slugify("Température de l'eau pour le thé vert") returns temperature-de-l-eau-pour-le-the-vert: the function splits at the apostrophe instead of running the words together, but stop words still have to be removed by hand. Store the slug with the content and do not recompute it from the title on every build.
Common mistakes
- Publishing the suggested slug without reviewing it: the whole title, stop words,
leauordartichaut. - Keeping the
-2suffix: it often signals duplicate content, and the address looks temporary. - Putting the year or a number (“10 tips”) in the slug of content that will be updated.
- Recomputing the slug every time the title changes in custom development: the URL changes without a redirect.
- Stuffing the slug with keywords (
the-vert-bio-the-vert-vrac-meilleur-the-vert): no effect on rankings, a poor impression in results. - Bulk-fixing working slugs just to shorten them: real risk, little gain.
- Forgetting the other languages: a French slug on the German version of a multilingual site.
Frequently asked questions
Should I change the overly long slugs on my site?
Generally, no. According to Google, keywords in the URL have hardly any effect on rankings, whereas every change requires a 301 redirect, updated internal links and time for it to be taken into account. Only fix slugs that are misleading, faulty or contain a date that is no longer true. Apply the writing rule to new pages, and use a redesign to rework the rest.
How many words should a slug contain?
Google sets no length. The rule of thumb is three to five words that describe the topic, without unnecessary articles or prepositions. A short slug can be read in full in results and in a share, and has fewer reasons to change. Keep a linking word only if it avoids ambiguity, for example to distinguish two similar topics.
Should stop words such as the, of or for be removed?
Most of the time, yes, to shorten the address: delivery-returns is as clear as the-delivery-and-the-returns. This is not a search engine rule but a readability convention. Keep the word if it carries meaning, as in before-after or gluten-free. Do this sorting by hand: an automatic filter sometimes deletes useful words.
Should the slug repeat the title tag exactly?
No. The title can be longer, contain the brand and a hook, and evolve to improve the click-through rate. The slug, on the other hand, must stay stable: it sums up the topic in a few words and does not follow edits to the title. Start from the page’s main keyword rather than the full title, and do not change the slug once the page is published.
Resources
- Google Search Central: URL structure best practices for Google Searchdevelopers.google.com
- Google Search Central: SEO Starter Guidedevelopers.google.com
- WordPress: Settings Permalinks Screenwordpress.org
- Shopify: Creating and managing URL redirectshelp.shopify.com
- Adobe Commerce: Catalog URLsexperienceleague.adobe.com
- Drupal: Pathauto moduledrupal.org
- Laravel: String helpers, Str::sluglaravel.com
Updated on
Topic checklist (PDF)