Technical SEO 5 min read

SEO-friendly URLs: structure and best practices

How to create SEO-friendly URLs: short, descriptive slugs, hyphens, structure, categories, parameters, trailing slashes, changing URLs safely and platform limits.

Usman Muhammad UsmanUpdated October 13, 2026
SEO-friendly URLs: structure and best practices

A URL is a page’s address, and a clear one helps visitors, search engines and anyone sharing your links. SEO-friendly URLs are short, readable and describe the page. They are easy to get right on a new site and risky to change later. Here are the best practices I follow and how to handle existing URLs.

Why URLs matter

URLs appear in search results, browser bars and shared links. A descriptive URL such as /services/wordpress-development/ tells people what to expect before they click. Search engines use URLs as one of many signals about page content, though their direct ranking impact is small.

Clean URLs are also easier to manage, analyse in reports and remember. Messy URLs with long parameters or random numbers make all of this harder.

Keep them short and descriptive

Use a few words that describe the page, such as /pricing/ or /blog/how-to-speed-up-wordpress/. Remove unnecessary words like ‘and’, ‘the’ and ‘of’ where the meaning stays clear. Avoid full sentences and dates for evergreen content.

Shorter URLs are easier to share and less likely to be truncated in search results. They also leave room to update the page title without the URL becoming outdated.

URL best practices
  • ShortA few descriptive words
  • HyphensLowercase, no underscores
  • KeywordNatural, not stuffed
  • ShallowOne or two folders
  • ConsistentOne version, one format
  • StableRedirect if changed

Use hyphens and lowercase

Separate words with hyphens, which search engines treat as word separators. Avoid underscores, spaces and special characters. Use lowercase letters consistently, since some servers treat uppercase and lowercase URLs as different pages.

Avoid non-ASCII characters where possible, or make sure they are properly encoded. Most platforms handle this automatically when creating slugs.

Include the main keyword naturally

Include the main keyword in the URL where it fits naturally, such as /emergency-plumber-leeds/. Do not stuff several keywords or repeat words. The URL should read like a clear label, not a keyword list.

If the title changes later, you usually do not need to change the URL, as long as it still describes the page.

Logical folder structure

Folders can show hierarchy, such as /services/web-design/ or /blog/seo/. A shallow structure with one or two levels is usually best for small sites. Deep structures with many levels make URLs long without much benefit.

For WordPress blogs, the Post name permalink setting, /post-name/, is simple and flexible. Including categories in post URLs makes them longer and causes URL changes if categories change.

In Settings > Permalinks, choose Post name for clean URLs. Set it before publishing content, because changing it later changes every post URL. WordPress automatically redirects many old permalink formats, but redirects should still be checked.

Edit each page or post’s slug in the editor to shorten it. WordPress generates slugs from titles, which can be long. Remove stop words and keep the main topic.

Shopify URL structure

Shopify uses fixed prefixes: /products/, /collections/, /pages/ and /blogs/blog-name/. You cannot remove them, but you can edit the handle, the last part of the URL. Keep handles short and descriptive.

Shopify creates automatic redirects when you change a handle if you tick the option. See Shopify SEO basics.

Parameters and filters

URL parameters, such as ?colour=blue&sort=price, create many variations of the same page. They are useful for filtering but can create duplicate content and waste crawl effort. Use canonical tags pointing to the main version and avoid linking to parameter URLs in navigation.

Tracking parameters such as UTM codes should not be used on internal links, as they create duplicate URLs and confuse analytics. Use them only on external campaign links. See duplicate content and canonical tags.

Trailing slashes and consistency

Decide whether URLs end with a trailing slash and use the same format everywhere. WordPress uses trailing slashes by default. Make sure the other version redirects to your chosen format.

Consistency also applies to www versus non-www and http versus https. Every variation should redirect in one step to the preferred version.

Changing existing URLs

Changing a URL that already ranks or has backlinks carries risk. Only change URLs when there is a clear benefit, such as a confusing or very long URL on an important page, or during a planned restructure.

When you change a URL, set up a 301 redirect from the old URL to the new one and update internal links. See 301 redirects explained.

International URLs

For multilingual or multi-country sites, use a clear structure such as subfolders, /es/ or /en-gb/, subdomains or country domains. Translate URL slugs into the page’s language where possible. See creating a multilingual WordPress site.

Use hreflang tags to connect language versions. Most multilingual plugins and Shopify Markets handle this automatically.

Auditing URLs on an existing site

Crawl your site and export every URL to a spreadsheet. Look for very long slugs, uppercase letters, underscores, parameters on internal links, duplicate versions with and without trailing slashes, and old URLs that still return content instead of redirecting. These issues are common on sites that have been edited by several people over the years.

Fix the problems that create duplicates or confuse users first, such as inconsistent versions and parameter links. Leave long but working URLs on established pages alone unless there is a strong reason to change them. Document your URL rules so new pages follow the same pattern.

Getting help

Planning URL structure is part of every site I build through my WordPress development service and every restructure I manage in my SEO services.

For a complete page checklist, see my on-page SEO checklist.

Key takeaways

  • Keep URLs short, descriptive, lowercase and hyphenated.
  • Set WordPress permalinks to Post name before publishing content.
  • Avoid parameter URLs in navigation and internal links.
  • Only change ranking URLs with a clear benefit and a 301 redirect.

Frequently asked questions

Do URLs affect SEO?

They have a small direct effect but help users and clarity. Clean URLs are best practice.

Should I include dates in blog URLs?

Not for evergreen content. Dates make content look outdated and complicate updates.

Can I remove /products/ from Shopify URLs?

No. Shopify's prefixes are fixed. You can edit the handle.

Should I change my old URLs to be shorter?

Only for important pages with a clear benefit, using 301 redirects.

Are uppercase letters bad in URLs?

They can cause duplicate versions. Use lowercase consistently.

Should categories be in WordPress post URLs?

Usually not. Post name URLs are shorter and do not change when categories change.

Free website audit

Get a free audit of your website

Tell me your URL and I'll send a short, prioritized list of the speed, SEO and security fixes that will make the biggest difference.

  • No obligation, no sales call
  • 5.0 rating on Google and Upwork
  • Reply within one business day
Written by Muhammad UsmanWeb Development Team Lead with 5+ years building WordPress, WooCommerce, Shopify and Wix websites. Experience · Certificates About me

More on Technical SEO

All Technical SEO articles

Have a project in mind?

Tell me what you're building and I'll reply with next steps and an estimate.