Skip to content

SEO friendly URL: best practices and examples

By the SEOXtreme editorial teamUpdated 7 min read

Compare these two addresses: yourstore.com/index.php?id_product=4821&cat=17 and yourstore.com/product/oak-dining-chair/. The second one tells you what you'll find before you click; the first looks like an error code. That, in essence, is an SEO friendly URL: an address a person understands and a search engine processes without confusion.

It seems like a minor detail until you text a product link to a friend, review your results in Google or, worse, change a URL that was already selling and it disappears from the results. In this guide you'll see how to write good URLs, how to structure them in a store, how to set them up in WordPress and WooCommerce and, above all, when not to touch them.

In short:

  • An SEO friendly URL uses descriptive words, lowercase letters, and hyphens, with no IDs or unnecessary parameters.
  • In a store, choose a clear structure for products and categories before launching, and keep it.
  • Avoid accents, special characters, dates, and session parameters in your URLs.
  • Never change a URL that already ranks without a 301 redirect to the new one.

What an SEO friendly URL is (and what it isn't)

Google's guide on URL structure sums it up in a few rules: use readable words instead of long ID numbers, separate words with hyphens instead of underscores, use your audience's language, and avoid session IDs. Its own example of a recommended URL is as simple as https://example.com/wiki/Aviation.

An SEO friendly URL won't move you up the rankings by itself. Its value lies elsewhere: the person understands where they're going before clicking, the link inspires trust when it's shared, and the structure helps you organize your catalog. When someone pastes your link into a chat with no explanation, the URL is the only thing that describes where it leads. And there's a less visible benefit: a clean, stable URL builds up links and signals for years.

Anatomy of a store URL

Part Example Tip
Protocol https:// Always HTTPS, across the whole site
Domain yourstore.com Choose with or without "www" and redirect the other version
Base /product/ Set by your platform or your permalink settings
Slug oak-dining-chair The part you write: short and descriptive
Parameters ?color=natural Only for filters or variants, in key=value format

One technical detail that causes duplicates: for Google, URLs are case-sensitive, so /Chairs/ and /chairs/ are two different addresses. If your server shows the same thing at both, standardize everything in lowercase.

9 best practices for an SEO friendly URL

  1. Words that describe the content. "oak-dining-chair" instead of "prod-4821".
  2. Hyphens to separate words, never underscores or spaces.
  3. All lowercase, so you don't create duplicate versions.
  4. No accents or special characters. Google asks you to percent-encode characters outside the ASCII range, so a URL with "café" ends up with caf%C3%A9. WordPress removes accents when it generates the slug; when the automatic result doesn't read well, rewrite the slug by hand.
  5. Short and to the point. There's no magic number for SEO friendly URL length: remove words that add nothing, but without sacrificing the meaning.
  6. No dates in products and categories. A category with "2025" in the URL ages badly and forces you to change it.
  7. No session parameters. Google recommends avoiding them and using cookies.
  8. Well-formed parameters when you need them: ?color=natural&sort=price, with = and &.
  9. A single version of each page: with or without a trailing slash and with or without "www", but always the same one, with the others redirected.

SEO friendly URL examples: before and after

Type Before After
Product /index.php?id_product=4821 /product/oak-dining-chair/
Product /product/Dining_Chair_OAK_Mod-2291/ /product/oak-dining-chair/
Category /product-category/cat-17/ /product-category/dining-chairs/
Article /2026/03/14/how-to-choose-the-best-chair-for-your-dining-room-complete-guide/ /blog/how-to-choose-a-dining-chair/
Filter /chairs/?sid=8f3a9c&color=natural /chairs/?color=natural

Notice the pattern: you can read the "after" version out loud over the phone without spelling anything.

SEO friendly URL structure for ecommerce: products, categories, and filters

Products. There are two schools: a fixed base (/product/oak-dining-chair/) or the category inside the URL (/shop/chairs/oak-dining-chair/). The second adds context, but if the product changes category, its URL changes. The fixed base is more stable and is usually the safest option.

Categories. Here hierarchy does make sense: /product-category/chairs/dining-chairs/ reflects how the customer browses. But don't make it longer than needed: five levels of folders don't help anyone. Google analyzes the links between pages, more than the URL structure, to understand which pages are important; your menus and your breadcrumbs reinforce the hierarchy. We cover optimizing the content of these pages in category page SEO.

Filters. They normally use parameters (?color=natural). Decide which ones deserve to be indexed and which should point to the clean category with the canonical tag.

This is what a simple, stable structure looks like for a furniture store:

yourstore.com/
├── product-category/chairs/
│   ├── product-category/chairs/dining-chairs/
│   └── product-category/chairs/office-chairs/
├── product/oak-dining-chair/
├── product/black-ergonomic-office-chair/
└── blog/how-to-choose-a-dining-chair/

Categories show the hierarchy, products hang from a fixed base that doesn't change even if you move them to another category, and blog articles live in their own section, with no dates.

SEO friendly URLs in WordPress, WooCommerce, and Shopify

In WordPress, the setting is under Settings > Permalinks. Choose the structure with the post name and never the Plain option, which generates URLs with numbers. If you want to review the rest of the basic settings, see the guide on how to improve SEO on WordPress.

WooCommerce adds the product bases on that same screen. According to its permalinks documentation, these are the options:

Option Example of the resulting URL
Default yourstore.com/product/oak-dining-chair/
Shop base yourstore.com/shop/oak-dining-chair/
Shop base with category yourstore.com/shop/chairs/oak-dining-chair/
Custom base yourstore.com/furniture/oak-dining-chair/

The same documentation warns about two things: changing the structure updates the URLs of all existing products, and old links will return a 404 error if you don't set up redirects; also, don't use the same base for products and categories.

In Shopify the structure is fixed: products live under /products/ and collections under /collections/, and you only edit the final part (the handle). If you change it, check that a redirect exists from the previous URL; Shopify only lets you create redirects from URLs that no longer work, as its help on URL redirects explains.

Don't change URLs that already rank (or do it with a 301)

This is the most expensive mistake on the subject. A product page that's been in Google for two years has links, history, and customers who bookmarked it. If you change its URL without a redirect, all of that runs into a 404.

Before changing it, answer three questions:

  • Does the current URL mislead the customer? For example, it says "oak-chair" and the product is now made of pine.
  • Are you migrating the store's whole structure or changing platforms?
  • Are two URLs competing for the same product and you need to consolidate them?

If you answer no to all three, don't touch it. If any applies, follow what Google recommends in its guide to moving a site with URL changes: map each old URL to the new one, redirect straight to the final destination, and keep the redirects for at least one year. The complete procedure is in the 301 redirect guide.

In a WooCommerce store, SEOXtreme doesn't change your URLs when it optimizes, because its improvements are additive, and if you change a slug it creates the 301 redirect automatically. You'll find it in WooCommerce SEO.

Common mistakes with a store's URLs

  • Stuffing the slug with keywords: dining-chair-chairs-wood-chairs-cheap looks forced and doesn't help.
  • Leaving suffixes like -2 or -copy when duplicating products in WordPress.
  • Mixing uppercase and lowercase across the menu, the sitemap, and links.
  • Using internal names like the SKU or supplier code instead of the name people search for.
  • Mixing languages in the path, like /categoria-producto/chairs/ in an English-language store. Google recommends using your audience's language; if those URLs already rank, don't change them without a redirect plan.
  • Changing slugs to "optimize" them when they already rank, without measuring the risk.
  • Copying another store's structure without thinking about how your customers browse; describe your products and your categories well first.

Conclusion: choose well once and keep it

The best SEO friendly URL is the one you decide on carefully at the start and never touch again: descriptive, short, lowercase, and stable. What you build on top of it (links, reviews, rankings) depends on that stability.

Your next step: review your store's permalinks and ten product URLs at random. If you find IDs, uppercase letters, or odd suffixes on new pages, fix them; if they're on pages that already rank, plan the redirects first. To keep working on the technical foundation, visit the Technical SEO section.

Frequently asked questions

What is an SEO friendly URL?

It's a web address a person can read and understand before clicking, because it uses descriptive words instead of numbers or codes. For example, yourstore.com/product/oak-dining-chair is friendly; yourstore.com/index.php?id_product=4821 isn't. Google recommends using readable words instead of long ID numbers and separating words with hyphens.

How do I set up SEO friendly URLs in WordPress?

Go to Settings > Permalinks and choose a structure with the post name instead of the Plain option, which uses numbers. If you have WooCommerce, you set the product and category bases on that same screen. Do it before launching the store: changing the structure later modifies every URL and requires redirects so you don't lose traffic.

Should URLs contain accents or special characters?

It's better to avoid them. Characters outside the ASCII range are percent-encoded, and the URL looks long and strange when copied or shared. WordPress removes accents automatically when it generates the slug, so a product called 'Crème Brûlée Set' becomes creme-brulee-set. Still, review delicate cases and rewrite the slug by hand when the automatic result doesn't read well.

Can I change the URL of a product that already ranks?

You can, but only if the benefit is clear and always with a 301 redirect from the old URL to the new one. Without it, people arriving from Google, external links, or emails will see a 404 error and you'll lose the signals the page built up. If the change is purely cosmetic, like removing a word, it's usually not worth the risk.

Should I include the category in the product URL?

It isn't necessary to rank. Including it adds context, but if the product changes category its URL changes too, and that forces a redirect. That's why many stores use a fixed base, like /product/product-name/, and let breadcrumbs and internal links show the hierarchy. What matters is choosing a structure and keeping it.

Sources

  1. URL structure best practices for Google Search (Google Search Central)
  2. Permalinks (WooCommerce Documentation)
  3. Site moves with URL changes (Google Search Central)
  4. URL redirects (Shopify Help Center)
  5. remove_accents() (WordPress Developer Resources)
  6. Help Google understand your ecommerce site structure (Google Search Central)

Written and reviewed by the SEOXtreme editorial team using official sources (Google Search Central, platform documentation, and published studies). If you spot outdated information, email us at hola@vidaxtreme.com.

Keep learning

Stop optimizing by hand

SEOXtreme does this work for you across your whole catalog, with your approval. Try it for 14 days, no credit card.

14-day free trialAudit