URL and Page Slug Naming Rules: One Wrong Character Breaks the Page

Slugs must start with a letter, stay unique site-wide, remain short and contain the keyword. Five mundane rules decide whether a page opens, gets indexed and inherits authority.

URL and Page Slug Naming Rules: One Wrong Character Breaks the Page

When creating a page in a CMS, the first field is usually the slug. It becomes the last segment of the URL, such as /products/glass-bottle-250ml. Get it wrong and the page may fail to open or be treated as a duplicate. There are only five rules, and each one gets broken.

Rule 1: start with a letter

Slugs cannot start with a digit or symbol, because some CMS platforms mis-parse them and the page fails. Starting with the product name is safest: glass-bottle-250ml rather than 250ml-glass-bottle.

Rule 2: unique site-wide

Two pages sharing a slug means the second overwrites the first or throws an error. Add a distinguishing element for product families, such as glass-bottle-250ml and glass-bottle-500ml. Be especially careful during migrations: do not delete old slugs, redirect them with 301s first.

Rule 3: short, readable, keyword-bearing

Keep URLs to three levels or fewer, such as /products/category/product-name. Avoid dates, random IDs and multi-parameter strings like ?id=123&cat=45. Putting the core keyword in the URL is both a ranking factor and a usability cue.

Rule 4: lowercase with hyphens

Use lowercase letters and hyphens between words, never underscores, spaces or Chinese characters. Spaces become %20 and break when links are forwarded; Chinese slugs turn into garbled text on some systems.

Rule 5: if it changes, redirect it

Redesigns are where authority leaks fastest. Every page whose slug changes needs a 301 to the new address, kept for at least six months. Export the full URL inventory before a bulk change and compare afterwards with a crawler to confirm zero 404s.

A naming template you can copy

Category: /product-category/. Product: /product-category/product-name-key-spec/. Article: /news/topic-term/. Solution: /solutions/application/. All lowercase, hyphens, no parameters. Naming this way makes the site audit two years later far easier.

Compiled by the aibolg team from project practice and public industry material, for reference only.
← Back to listContact us →

Related Articles