A URL is the address of a page. Good URLs are short, readable and describe the page, which helps visitors decide whether to click, makes links easier to share and gives search engines a small extra clue about the content. URLs are a minor ranking factor on their own, but bad URL decisions, such as changing them without redirects or generating thousands of messy parameter URLs, can cause major problems. This guide covers the rules for creating good URLs and how to handle the tricky cases.

What a good URL looks like

PoorBetter
/page?id=4821&cat=7/services/furnace-repair
/blog/2024/03/15/10-tips-for-maintaining-your-furnace-this-winter-season/blog/furnace-maintenance-tips
/Services/Furnace_Repair.html/services/furnace-repair
/best-furnace-repair-toronto-furnace-repair-service/furnace-repair-toronto

The rules

1. Describe the page in a few words

Use the main topic of the page: /heat-pump-installation. Someone reading the URL alone should know roughly what the page is about.

2. Keep it short

Remove unnecessary words such as "and", "the", "a" and filler like "page" or "info" where meaning stays clear. Short URLs are easier to read, share and remember.

3. Use hyphens between words

Google treats hyphens as word separators. Avoid underscores, spaces (which become %20) and run-together words.

4. Use lowercase

URLs can be case-sensitive on many servers, so /Services and /services could be different pages. Stick to lowercase and redirect uppercase versions.

5. Include the main keyword naturally

Include the main topic once. Do not repeat keywords or stuff several variations into the URL.

6. Avoid dates unless the content is truly time-bound

Dates make evergreen content look old and make updating awkward. News and event pages can include dates; guides should not. See evergreen content.

7. Use a logical folder structure

Folders can group related pages: /services/furnace-repair, /locations/ottawa, /blog/heat-pump-guide. Keep the structure shallow: two or three levels is usually enough. Deep nesting like /en/services/residential/heating/furnaces/repair adds length without value.

8. Avoid unnecessary parameters

Parameters such as ?sort=price, ?sessionid= or ?utm_source= create many URLs for the same content. Keep important pages on clean URLs, use canonical tags to point parameter versions to the main URL, and never link internally with tracking parameters. See handling duplicate content.

9. Be consistent with trailing slashes and www

Choose one format (with or without a trailing slash, with or without www) and redirect the other versions to it, so each page has exactly one URL.

10. Use HTTPS

All URLs should use HTTPS, with HTTP versions redirected.

Special cases

Location pages

For businesses with several locations, a pattern like /locations/calgary-beltline or /furnace-repair-calgary works. Choose one pattern and apply it consistently. See SEO for multi-location businesses.

French and other languages

For French pages, use French words in the slug (/fr/reparation-fournaise) and a language folder. Accented characters work in modern browsers but are encoded in many contexts; many sites use unaccented versions for simplicity. Be consistent. See SEO for international websites.

E-commerce

Product URLs should not depend on category paths if products appear in several categories, to avoid duplicates. Platforms like Shopify have fixed prefixes such as /products/, which is fine. See SEO for Shopify stores.

Filtered pages

If a filtered view deserves to rank, such as "waterproof boots", give it a clean, static URL rather than a parameter.

Changing URLs safely

Changing a URL that already ranks resets some of its history and breaks links unless handled carefully. Change URLs only when there is a real benefit, such as a confusing structure or a migration, and then:

  1. Map each old URL to its new URL.
  2. Add a 301 redirect from old to new, one to one.
  3. Update internal links to point directly to the new URLs.
  4. Update the XML sitemap.
  5. Monitor Search Console for 404 errors and ranking changes.

Do not change good URLs just to add a keyword. The small benefit rarely outweighs the risk. See website redesign: when and how.

Platform settings

  • WordPress: set permalinks to "Post name" on new sites, and edit each page's slug before publishing. See SEO for WordPress.
  • Shopify: edit the handle in each product's or collection's search engine listing section; tick the redirect option when changing it.
  • Custom sites: generate slugs from titles automatically, then allow manual editing.

Common mistakes

  • Publishing with auto-generated slugs full of stop words or numbers.
  • Changing URLs without redirects.
  • Multiple URLs for the same page (case, slashes, parameters).
  • Keyword-stuffed slugs.
  • Dates in evergreen content URLs.

Planning URLs for a new site

The best time to get URLs right is before launch, when changing them costs nothing. Sketch your site structure first: the main sections (services, locations, blog, about), the pages in each, and the slug for every page. Agree on patterns (singular or plural folder names, trailing slashes, how locations are named) and write them down so everyone who adds pages later follows the same rules. A consistent structure is easier for visitors to understand, easier to report on in analytics and easier to maintain as the site grows.

Auditing existing URLs

Crawl your site and export every URL. Look for uppercase letters, underscores, parameters on internal links, duplicate versions of the same page and very long slugs. Fix the patterns that cause duplication first; leave readable-but-imperfect URLs alone unless you are already restructuring.

Frequently asked questions

Do URLs affect rankings?

Slightly. Their bigger effects are on click-through, sharing and avoiding technical problems.

Should I include my city in the URL?

For location-specific pages, yes, naturally. For general pages, it is unnecessary.

Are subfolders or subdomains better?

For most content, subfolders are simpler and keep everything on one site.

Want your site structure reviewed?

URL and site structure reviews are part of our technical SEO service. Start with a free SEO audit.

Written by

Priya Sharma

Digital marketing expert helping businesses grow online through SEO and strategic content.

All Articles