
How to choose stable URL slugs without breaking existing links
A readable slug is useful, but changing an established URL can create broken links and lost references if redirects are not planned. The best time to choose a good slug is before you publish. The second-best time is after a careful check of links, redirects, and references.
A URL slug is the last part of a page address. In https://example.com/choose-stable-url-slugs/ the slug is choose-stable-url-slugs. Readers, search engines, bookmarks, emails, documents, and social posts may all store that exact string. A slug is therefore not only a label. It is an address people and systems rely on.
What makes a slug stable
A stable slug describes the lasting subject of the page, not the news hook, campaign, season, price, version, author, or temporary wording that happened to be true on publication day. If the page is a guide to choosing slugs, a stable slug names that topic. It does not include a year unless the year is part of the subject, such as a report about a specific year. It does not include words such as new, updated, final, best, or limited-time, because those words age quickly and can make a still-useful page look outdated.
Stability also means the slug does not depend on details that are likely to change. A product page slug that includes a model number is stable only if the model number will stay meaningful. A help page slug that includes a menu label is stable only if the menu label is unlikely to change. When you are unsure, choose the broader durable concept rather than the narrow temporary detail. You can explain the current detail in the page title, heading, or body text, where it is easy to update without breaking the address.
Choose a short description of the page
Start with the page title, then remove words that add no meaning for an address. Keep the nouns and verbs that identify the subject. Remove filler words such as a, the, and, of, and to when the result is still clear. The title How to Choose Stable URL Slugs Without Breaking Existing Links can become choose-stable-url-slugs or stable-url-slugs. Both are shorter than copying the whole title, and both still describe the page.
Short slugs are easier to read, copy, paste, say aloud, and check for typos. A very long slug may wrap awkwardly in an email, get cut off in a printed document, or make two similar pages hard to tell apart. Aim for three to seven meaningful words in most cases. A two-word slug can be fine if it is specific enough. A slug with more than eight words is often a sign that you are copying a sentence instead of naming a topic.
Be specific enough to avoid collisions. A slug such as guide or tips is short but vague, and it will be hard to reuse for other guides. A slug such as stable-url-slugs is short and specific. If your site already has a similar page, add one distinguishing word rather than a number. For example, stable-url-slugs-editorial is clearer than stable-url-slugs-2, because the number does not explain the difference.
Use a consistent, readable format
Use lowercase letters, words separated by single hyphens, and no spaces, underscores, special characters, or accented characters unless your platform has a clear rule for them. Lowercase avoids confusion between two addresses that differ only by capitalisation. Hyphens are widely treated as word separators and are easier to read than underscores, which can be hidden by an underline in a link. Avoid double hyphens and leading or trailing hyphens.
Prefer plain letters and digits when your audience and tools allow it. If the title contains an accented character, a symbol, or punctuation, convert it to the closest plain form or drop it if it adds no meaning. An ampersand can become and or be removed, depending on clarity. Keep digits only when they are part of the subject, such as a standard name. Do not add a date, random number, or internal code to make a slug unique unless you have a documented reason and a plan for what happens when that code changes.
Worked example: from a draft title to a stable slug
| Step | What to do | Result |
|---|---|---|
| Identify the subject | The page is about choosing stable URL slugs | Year, new, and updated are not part of the subject |
| Draft a slug | Short and descriptive | choose-stable-url-slugs |
| Check collisions | Search the site for similar slugs | URL Slug Generator is a tool page, so the guide slug stays distinct |
| Test readability | Read the full address aloud | It makes sense without the title |
| Decide early | Confirm before newsletters or printed material | A change after distribution creates the most work |
| Second example | pricing-2026-discount ties the page to one year and one offer | Better: pricing-guide or how-pricing-works |
Suppose you are about to publish a guide titled New 2026 Guide: How to Choose Stable URL Slugs Without Breaking Existing Links (Updated!). A direct copy of that title would produce a long slug with a year and the words new and updated. All three will age. A better process looks like this.
- Identify the lasting subject. The page is about choosing stable URL slugs. The year, the word new, and the word updated are not part of that subject.
- Draft a short descriptive slug. A first draft might be choose-stable-url-slugs. It names the task and the object.
- Check for collisions and confusion. Search the site for existing slugs with similar words. If there is already a tool page called URL Slug Generator, the guide slug is still distinct because it describes choosing slugs, not generating one.
- Test readability. Read the full address aloud. Check that it makes sense without the title. Remove any word that does not change the meaning.
- Decide before publishing. If the slug will be shared in a newsletter or printed material, confirm the final slug before that material is sent. A change after distribution creates the most work.
Consider a second example. A site publishes a pricing guide and is tempted to use pricing-2026-discount. That slug ties the page to one year and one offer. When the offer ends, the page either keeps a misleading address or needs a redirect. A better slug is pricing-guide or how-pricing-works, depending on what the page explains. The current price and offer belong in the page content, where they can be corrected without breaking links.
Before changing a published slug, inspect the references
If a page is already published, treat a slug change as a move, not a rename. The old address may be stored in many places you do not control. Before changing it, inspect internal links, external references, bookmarks, emails, documents, social posts, feeds, sitemaps, analytics, and search-console data. Look for the old URL in your own site first, then consider the links you know about outside it. You will not find every external reference, which is why a redirect matters.
When a change is necessary, add a tested permanent redirect from the old address to the new one. A permanent redirect, commonly a 301 redirect, tells browsers and search engines that the page has moved. Update internal links to point directly to the new address rather than relying on the redirect forever. Update the sitemap if your system does not do so automatically. Keep the redirect in place for a long time, because old links can resurface months or years later in archived pages, PDFs, and email threads.
After the change, test the old address in a browser and in a private window. Confirm that it redirects to the correct new page, not to the homepage or a generic landing page. Test links from the new page itself, and check that images, styles, and scripts still load. Avoid chains of redirects. If a page has moved more than once, point the oldest address directly to the current address when possible, rather than sending visitors through several hops. Redirect chains slow down loading, make debugging harder, and increase the chance that one step fails.
Common mistakes to avoid
- Copying the whole headline. Headlines attract attention. Slugs should identify the topic.
- Using dates, seasons, or campaign names. These details expire and can make evergreen content look stale.
- Changing a slug for a small wording improvement. A slightly better slug is rarely worth breaking existing links. Update the title and body instead.
- Creating near-duplicate slugs. Slugs that differ by one vague word are easy to confuse. Make the difference meaningful.
- Deleting the old address without a redirect. If the old URL returns an error, visitors who followed a trusted link reach a dead end.
- Forgetting internal links. A redirect helps external visitors, but your own navigation and related posts should point to the current address.
Limitations
A good slug does not guarantee traffic, ranking, or comprehension. Search engines use many signals, and readers judge a page by its content, not only its address. A clear slug can help a reader decide whether to click, but it cannot make thin or inaccurate content useful. Likewise, a stable slug does not protect a page from other changes, such as a redesign, a platform migration, or a change in site structure. Those changes need their own redirect and testing plan.
Redirects reduce harm, but they do not erase it. Some visitors will still land on cached pages, old PDFs, or printed material that shows the old address. Some tools may not follow redirects in the same way. Treat a redirect as a safety net for references you cannot update, not as a routine way to publish. There are also cases where a slug should change despite the cost. A slug with a typo, a wrong product name, a misleading claim, or sensitive information may need correction. Weigh the harm of keeping it against the harm of moving it, add a redirect, update the links you control, and record the decision.
Use the related tool carefully
This guide is paired with a browser-only utility. The tool is a practical aid for small examples and inspection; it is not a substitute for application testing, a formal data pipeline, or professional review where the decision has higher consequences.
Open the related URL Slug Generator
Frequently asked questions
Should a slug match the page title exactly?
No. The title can be longer and more expressive. The slug should be a short, stable description of the subject. A title can change with an update; the slug should change only when there is a strong reason and a redirect plan.
Are hyphens better than underscores in slugs?
Hyphens are the safer default. They are widely treated as word separators, and they remain visible when a link is underlined. Underscores can be hidden by an underline and are easier to misread when a slug is copied by hand.
Should I include a date in a slug?
Usually no. Include a date only when the date is part of the subject, such as an annual report for a specific year. For guides and help pages, keep dates in the title, body, or metadata, where they can be updated without breaking the address.
What should I do if I already changed a slug without a redirect?
Add a permanent redirect from the old address to the current address as soon as possible. Update internal links to the current address, test the old address, and check for redirect chains. Keep a note of the change so the redirect is not removed later.
Sources
- https://url.spec.whatwg.org/
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize
Try a Tool
Free, in your browser — no sign-up.
- .htaccess Generator Open tool →
- Age Calculator Open tool →
- Angle Converter Open tool →
- API Tester Open tool →
- ASCII Converter Open tool →
- Base64 Encoder and Decoder This tool converts text to the Base64 representation used in many transport and test contexts, and it reverses Base64 text back into Unicode text when the input is valid. Open tool →
Related Articles
How to Split a Bill Fairly (With Tip and Tax, Without the Awkward Maths)
Quick Answer Agree the method before ordering, split the food by what each person ordered, and split tax and tip in proportion…
Read article →How to Use the Pomodoro Technique to Actually Finish Your Work
Most productivity advice tells you what to do and leaves the when to you. That is exactly where the day falls apart.…
Read article →How to Merge PDF Files Into One Document (Without Losing Pages)
You have five PDFs. Your bank wants one file. Your university wants one file. Your client wants one file. Merging them is…
Read article →