Ecommerce Website Structure: How to Get It Right (URLs, Categories, Navigation)
Short answer: a small store needs a simple shape. The home page links to a handful of categories, each category links to its products, and every page has one address made of plain lowercase words joined by hyphens. Google says it works out a site's structure from its links, not from the folders in its URLs, so your menus and category pages matter more than the exact URL pattern. On Shopify most of that pattern is fixed for you. On WooCommerce you choose it once, before you launch, and then leave it alone.
On this page
- What a good ecommerce site structure looks like
- Ecommerce URL structure: what Google asks for
- Categories: how deep should they go?
- Filters, sorting and duplicate content
- Breadcrumbs
- Internal linking for a store
- Platform notes: what you can and can’t change
- Changing URLs on a store that already ranks
- A structure checklist for a small store
- How we put this guide together
Where this comes from. The rules on this page are taken from Google’s Search Central documentation for ecommerce sites, and from the help pages of Shopify, WooCommerce, BigCommerce, Wix and Squarespace, read on November 20, 2026. Where we add advice of our own for small stores, we say so. We have not run experiments on store structure for this guide.
What a good ecommerce site structure looks like
Site structure is how your pages connect: which pages the home page links to, which pages those link to, and how a shopper gets from the front door to a product.
For a small store, three levels are enough. Here is an example for a shop selling candles and home fragrance.
- Home page
/- CategoryCandles
/candles- Sub-categorySoy candles
/candles/soy- ProductLavender soy candle
/products/lavender-soy-candle - ProductCedar soy candle
/products/cedar-soy-candle
- ProductLavender soy candle
- Sub-categoryBeeswax candles
/candles/beeswax
- Sub-categorySoy candles
- CategoryDiffusers
/diffusers- ProductFig reed diffuser
/products/fig-reed-diffuser
- ProductFig reed diffuser
- CategoryGift sets
/gift-sets - Other pagesAbout, Shipping and returns, Contact, Blog
/about, /shipping, /contact, /blog
- CategoryCandles
Our example. The addresses are illustrations: your platform may use a different pattern, such as /collections/candles on Shopify.
Google’s guidance on ecommerce site structure describes the same chain: menus link to category pages, category pages link to sub-categories, and those link to every product. It adds two points worth knowing:
- Google reads links, not folders. In its own words, Google “generally doesn’t look at the structure of URLs” to work out how a site is organized. It follows the links between pages.
- Links signal importance. Google can use how many links it takes to reach a page, and how many pages link to it, to judge how important that page is within your site.
So the practical test is simple. Can a shopper, and a search engine, reach every product by clicking ordinary links from the home page?
Ecommerce URL structure: what Google asks for
A URL is the address of one page. Here is one taken apart.
https://www.example.com/products/lavender-soy-candle?color=white
https://- Protocol. Google prefers the secure https version by default.
www.example.com- Domain. Your own name. Buy it yourself so it moves with you if you change platforms.
/products- Path prefix. Often set by your platform. Shopify uses /products, WooCommerce uses /product by default.
/lavender-soy-candle- Slug or handle. The part you write. Plain words, lowercase, joined by hyphens.
?color=white- Parameter. Optional extras such as a variant, a filter or a page number. Keep these few.
Our diagram. The example address is made up.
Google’s URL documentation asks for a short list of things:
- Use readable words, not ID numbers. Its example prefers
/product/black-t-shirt-with-a-white-collarto/product/3243. - Join words with hyphens, not underscores, and don’t run words together.
- Pick one letter case. Google treats
/Candlesand/candlesas two different addresses. Lowercase everywhere is the simplest rule. - One URL for each page. The same content at several addresses makes Google crawl it several times and choose one for itself.
- Keep parameters few, written as
?key=value, and don’t link to temporary ones such as session IDs or tracking codes inside your own site. - Don’t use the # part of a URL to show different content. Google ignores everything after the #, so
/t-shirt#blackand/t-shirt#whiteare one page to it.
Just as useful is what Google says does not matter much:
- Keywords in the URL. The SEO Starter Guide says they have “hardly any effect beyond appearing in breadcrumbs”. Use descriptive words for people, not for rankings.
- URL length and depth. Neither of Google’s URL documents sets a maximum length or a number of folders.
- Whether you can even change it. Google’s ecommerce URL guide opens by telling people on an ecommerce platform that they can most likely skip it, because the platform has handled the URLs.
Good and bad URL examples
| Page type | Good | Avoid | Why |
|---|---|---|---|
| Product | /products/lavender-soy-candle |
/products/item?id=3243 |
Words tell a shopper what the page is |
| Product | /products/lavender-soy-candle |
/products/Lavender_Soy_Candle |
Mixed case and underscores create near-duplicates and are harder to read |
| Category | /candles |
/category.php?cat=7&sess=83hf2 |
A session ID in a link makes a new URL for every visitor |
| Sub-category | /candles/soy |
/shop/all/home/fragrance/candles/soy-candles/soy |
Extra folders add nothing a shopper needs |
| Variant | /products/soy-candle?color=white |
/products/soy-candle#white |
Google ignores the # part, so the variant has no address of its own |
| Filter | /candles?scent=lavender |
/candles?lavender&sort=price&sort=new&view=grid |
Use key=value pairs, and don’t repeat a parameter |
| Page 2 of a category | /candles?page=2 |
/candles#page2 |
Each page of results needs its own crawlable address |
For product variants such as color or size, Google says each one should have its own address, as a path (/t-shirt/green) or a parameter (/t-shirt?color=green). If you use a parameter, the address without it should be the main one.
Categories: how deep should they go?
There is a popular rule that no page should be more than three clicks from the home page. Shopify’s help pages repeat it. Google’s documents don’t state any number. They say only that fewer clicks and more links can make a page look more important.
Our advice for a small store:
- Under about 100 products: a handful of categories, no sub-categories. Every product is two clicks from the home page.
- A category that takes several screens to scroll: split it into sub-categories by the thing shoppers choose on first, such as type or material.
- A product that fits two categories: list it in both. One product page, linked from two places, is fine.
- An empty category: don’t leave it live. Google suggests keeping empty category pages out of its index, or returning a “not found” page if the category is removed.
Name categories with the words shoppers use. “Soy candles” is a category. “Our collection” is not. Finding those words is the job of keyword research, and making the page itself rank is covered in category page SEO.
Filters, sorting and duplicate content
Filters let a shopper narrow a category by size, color, price or scent. This is called faceted navigation. The catch is that each filter, and each combination, usually creates a new URL that shows almost the same products.
Google’s documentation on faceted navigation describes the risk plainly: filter URLs can multiply without limit, crawlers spend their time on them, and your new and useful pages get found more slowly.
It gives two routes.
If you don’t need filter pages in search results (true for most small stores), stop crawlers reaching them:
- Block filter URLs in robots.txt, the file that tells crawlers where not to go. Google says there is often no good reason to let filtered pages be crawled.
- Or build filters that use the # part of the URL, which Google doesn’t crawl.
- Google rates two other common fixes, the canonical tag and nofollow links, as generally less effective over the long term for this particular job.
If you do want some filter pages found (for example “lavender candles” as a page of its own), Google asks for tidy URLs: a fixed order for filters, no duplicates, and a real “not found” response when a combination has no products. Often the better answer is to make that filter a proper sub-category.
Is duplicate content a penalty?
No. Google’s documentation says some duplicate content is normal and not a violation of its spam policies, and its Starter Guide lists the “duplicate content penalty” among things not to focus on. The cost is wasted crawling and Google sometimes choosing a different address than you wanted.
The tool for this is the canonical tag, a line in a page’s code that names its main address. Three facts from Google’s guidance:
- A canonical is “a hint, not a rule”. Google can choose differently.
- Each indexable page should name itself as canonical, and your internal links and sitemap should use that same address.
- Don’t use robots.txt as a canonical method. Blocking is for crawling, and canonicals are for choosing between copies. They are different jobs.
Most store platforms add canonical tags for you. Shopify lists them among the things it handles automatically.
Pagination
When a category runs to several pages, Google asks that each page has its own URL, such as ?page=2, and is reached by normal links. Two older habits are now wrong according to its guidance: don’t point the canonical of every page at page one, and don’t rely on rel=“next” and rel=“prev”, which Google no longer uses. If your theme uses a “load more” button or endless scrolling, make sure the products are also reachable through ordinary links, because Google’s crawlers don’t click buttons.
Breadcrumbs
A breadcrumb trail is the row of links near the top of a page that shows where you are: Home › Candles › Soy candles. It gives shoppers a way back up, and it gives every product a link to its category.
Three things to know:
- Google shows breadcrumbs in desktop results only. It removed them from mobile results in January 2025. The markup is still supported.
- Breadcrumb markup has simple requirements. A list of at least two items, each with a name, a position and a link.
- The trail should follow how a shopper browses, not copy the URL folder by folder. That is Google’s own recommendation.
Most current store themes include breadcrumbs, sometimes as a setting you switch on.
Internal linking for a store
Your menus and category pages do most of the linking. A few rules from Google’s guidance on links cover the rest:
- Use real links. Google can generally follow only a standard HTML link, an
<a>element with anhref. Navigation built purely from scripts may not be followed. - Every page you care about needs a link from at least one other page.
- Write link text that describes the destination. “Soy candles” is better than “click here”. For a product link, the product name is ideal.
- Link to what matters most. Google’s own example is linking a best seller from the home page or from blog posts to raise its importance.
- If a product can’t be reached by links, for example it only appears in on-site search results, Google suggests a sitemap or a Google Merchant Center product feed as a backstop.
A blog helps here. A buying guide that links to three products gives those products extra links with useful text. See our guide to blogging for ecommerce.
Platform notes: what you can and can’t change
This is the part most guides leave out. On a hosted platform, much of your URL pattern is decided for you.
| Platform | Product URL | Category URL | What you can change |
|---|---|---|---|
| Shopify | /products/your-handle |
/collections/your-handle |
The handle (last part). Shopify’s redirect documentation calls /products and /collections fixed paths |
| WooCommerce | /product/your-slug by default |
/product-category/your-slug by default |
Almost everything, under Settings > Permalinks in WordPress |
| BigCommerce | /product-name by default (short format) |
/category-name by default |
Format chosen under Settings > URL Structure: short, long, with category, or custom |
| Wix | /product-page/your-slug by default |
Set per page | The pattern, in SEO Settings. Wix calls this an advanced change |
| Squarespace | Store page address, then /p/your-slug (version 7.1) |
The store page’s own slug | The slug. The /p/ part always stays |
Shopify
- You can edit the handle of a product, collection or page. When you change a collection or page address, Shopify offers a tick box to create a redirect from the old one. Leave it ticked.
- Shopify recommends the hierarchy Home > Collections > Products and says most merchants don’t need to worry about site structure.
- A product can appear at a second, longer address that includes a collection, in the form
/collections/candles/products/lavender-soy-candle. Shopify’s developer documentation warns that this puts the same content on separate URLs. Shopify adds canonical tags automatically. If your theme links to the long form, a developer can switch it to the short one. - The sitemap is created and updated automatically. The robots.txt file can be edited through a theme template, which Shopify calls an unsupported customization and warns can cost you all your traffic if done wrong. Leave it alone unless you know why you are changing it.
WooCommerce
- Product addresses have four options: default (
/product/name), shop base (/shop/name), shop base with category (/shop/category/name), or a custom base. - WooCommerce warns that the product base and the category base must be different.
- It also warns that changing the permalink structure changes every existing product URL, and old links then return “not found” unless you add redirects. Choose before you launch.
- If you put the category in product URLs, note that from version 10.5 WooCommerce uses a product’s deepest category in the address, and says it redirects the old addresses automatically.
Our pick for a new WooCommerce store is the default /product/name. It is short, and it doesn’t change when you reorganize categories.
Still choosing a platform? See our guide to the best ecommerce platforms for small business.
Changing URLs on a store that already ranks
A URL that gets visitors from Google is worth more than a tidier URL. Google’s Starter Guide makes the same point about structure in general: don’t drop everything to reorganize, because search engines will likely understand your pages as they are.
If you do need to change addresses, for example when moving platforms:
- List every old address and its new oneStart with the pages that get search visitors, which the Search Console Performance report shows
- Add a permanent (301) redirect from each old address to its new oneGoogle treats a redirect as a strong signal of which address is the main one
- Update your own linksMenus, category pages, blog posts and the sitemap should all use the new address
- Check in Search ConsoleURL Inspection shows which address Google has chosen. Recheck a few weeks later
Our summary of the steps, based on Google's documentation on redirects and canonical addresses.
Redirect each old page to its closest match, not to the home page.
A structure checklist for a small store
- Every product can be reached by plain links from the home page, through a category.
- Categories are named with words shoppers search for.
- URLs are lowercase words joined by hyphens, one address for each page.
- Product addresses don’t depend on a category.
- Filter and sort URLs are not in your menus, and are blocked from crawling if there are many.
- Product and category pages have breadcrumbs.
- Your best sellers are linked from the home page.
- No URL changes without a redirect.
With the structure settled, the next jobs are the pages themselves: product page SEO and category page SEO. For the whole picture, start with our ecommerce SEO guide. To check a store for broken links and duplicate addresses, a site audit tool does the crawling for you: see the 10 best SEO tools and how the big three compare in Ahrefs vs Semrush vs Moz.
How we put this guide together
We read Google’s Search Central documentation on ecommerce URL structure, general URL structure, faceted navigation, ecommerce site structure, pagination, canonical addresses, breadcrumbs and links, plus its SEO Starter Guide and Search Console help. For the platform notes we read the help pages of Shopify, WooCommerce, BigCommerce, Wix and Squarespace. Each fact is recorded with its source and date in our fact log.
Two limits. The advice on how many categories a small store needs is our judgment, and is labelled as such. And we could not find official statements on two Shopify details, whether the /pages and /blogs prefixes can be changed and which address the canonical tag uses on collection-scoped product URLs, so this guide makes no claim about either.
If something here no longer matches Google’s or a platform’s documentation, tell us and we’ll correct it.
Frequently asked questions
What is the best URL structure for an ecommerce site?
Short, readable addresses made of lowercase words joined by hyphens, with one address for each page. A product page such as /products/lavender-soy-candle and a category page such as /candles are both fine. Google's documentation recommends descriptive words over ID numbers, hyphens over underscores and as few parameters as possible. It sets no rule on length or on how many folders a URL has.
Should product URLs include the category?
It works either way for Google, which says it reads site structure from links and not from URLs. We suggest leaving the category out. A product that sits in two categories then still has one address, and moving it to another category later doesn't change its URL.
Do keywords in URLs help SEO?
Only a little. Google's SEO Starter Guide says keywords in a domain name or URL path have hardly any effect beyond appearing in breadcrumbs. Descriptive words are still worth using because people read URLs in search results and when sharing links.
Can I change the /products/ and /collections/ part of a Shopify URL?
Shopify's help pages let you edit the last part of a product, collection or page address, called the handle. Its documentation on redirects calls /products and /collections fixed Shopify paths. In practice you work with the pattern Shopify gives you, which is fine for search.
How many categories should an online store have?
As many as a shopper needs to find things, and no more. For a store with under a hundred products, a handful of categories and no sub-categories is usually enough. Add a sub-category when a category page becomes too long to scan. That is our advice for small stores, not a Google rule.
Are product filters bad for SEO?
Filters help shoppers. The risk is that every combination of filters makes a new URL showing nearly the same products, and search engines waste time crawling them. Google's guidance is to stop crawlers reaching filter URLs you don't need in search, for example with robots.txt. On a small catalog this is rarely a serious problem.
Do I need a sitemap for a small store?
Usually your platform makes one for you. Google's Search Console help says a site of about 500 pages or fewer, where every page can be reached by links from the home page, probably doesn't need one. Shopify creates a sitemap automatically, and Google notes that hosted services such as Wix and Squarespace typically manage it too.