A good SEO directory structure is shallow, readable and consistent: every page sits in one obvious folder, the folder names are words a customer would use, no page is more than three clicks from the home page, and the URL reads like a sentence (/services/wedding-photography/ rather than /p?id=3921). Google’s own guidance says URLs should be simple, use hyphens between words and follow a logical hierarchy, and that is most of it. The rest is judgement: how many folders, whether the blog needs a category in its URL, and what to do with a site that already has a mess. Those are answered below with the structures I use for service businesses and shops, and the mistakes that cost rankings later.

What does a good SEO directory structure look like?

/                          home
/services/                 hub page
/services/web-design/
/services/seo/
/portfolio/
/portfolio/client-name/
/about/
/contact/
/blog/
/blog/post-title/

Three levels deep at most. The hub pages (/services/, /portfolio/) are real pages with content, not empty folders, because Google and visitors both land on them. Google’s URL structure guidance adds the mechanical rules: hyphens not underscores, consistent case, no session IDs or unnecessary parameters; keeping one URL per piece of content is the canonical rule from elsewhere in Google’s docs.

Why does SEO directory structure matter?

What structure doesWhy it helps
Groups related pagesGoogle reads a folder as a topic; ten pages under /services/ tell it what the site does
Passes authority downLinks to the hub page flow to the pages inside it, so a strong /services/ page lifts every service
Keeps pages close to the home pagePages three clicks or fewer from home are crawled more often and rank more easily than pages buried six deep
Makes URLs readable in resultsA URL that says /blog/squarespace-banner-dimensions/ earns a click that /?p=4412 does not
Keeps the sitemap and breadcrumbs honestBreadcrumb schema mirrors the folders; broken hierarchy means broken breadcrumbs in results
Makes reporting possibleIn Search Console you can filter by folder and see how /services/ performs against /blog/ in one click

The last one is underrated. The keyword report in Search Console becomes far more useful when every service lives under one folder and every post under another.

How deep should the structure go?

  • Two levels for a service business with under 30 pages: /services/x/, /blog/post/. Most of the sites I build sit here.
  • Three levels for shops and larger sites: /shop/category/product/ or /locations/city/service/.
  • Four or more almost never. If a page needs four folders to describe it, the folders are doing the job the page title should do.

Depth in the URL and depth in clicks are different things. A flat URL like /post-title/ can still be six clicks from home if nothing links to it; a three-folder URL can be two clicks away through the menu. Google cares about the click path more than the slashes.

Should the blog use categories in the URL?

Usually not. /blog/post-title/ is short, stable and survives a category reshuffle; /blog/wordpress/seo/post-title/ breaks every time you tidy the categories, and WordPress can only put one category in the URL anyway. The exception is a large publication where sections are real destinations with their own audiences; a small business blog is not that. Keep categories as archive pages and out of the post URL.

What are the common directory structure mistakes?

MistakeExampleFix
Dates in URLs/2023/04/12/post-title/Post name only; dates make evergreen posts look stale
Keyword-stuffed folders/seo/seo-services/local-seo-services-leeds/One folder, one keyword: /services/local-seo/
Empty hub folders/services/ returns 404 while /services/x/ existsBuild the hub page; it is often the best-ranking page on the site
Same page under two paths/services/seo/ and /seo/One canonical URL, redirect the other
Uppercase and underscores/Web_Design/Lowercase, hyphens
Platform folders you cannot controlSquarespace blog at /blog/ and store at /shop/Fine; choose the collection slugs once and never change them
Changing structure without redirectsRenaming /services/ to /what-we-do/301 every old URL to its new one, or lose the rankings; see the domain change post for how

The last row is the expensive one. A restructure with redirects keeps almost all rankings; without them it starts the site over, which is the same lesson as changing a WordPress domain.

Does directory structure differ by platform?

  • WordPress: pages nest under parents (Page Attributes, Parent) to create folders; the permalink setting for posts should be Post name, with /blog/ added as the blog page slug if you want posts under it.
  • Squarespace: pages can sit in folders in the Pages panel, but a folder is a navigation dropdown, not a URL prefix; pages moved into a folder keep a flat slug unless you type the prefix in yourself. Blog and shop collections add their own prefix.
  • Showit: flat page slugs, with the blog on WordPress under its own path.

On every platform the same rule holds: decide the structure on paper before building, then leave it alone. How to organize website pages covers the planning side, and the on-page SEO checklist covers what goes on each page once the structure exists.

What about “directory” in the other sense?

Searches for SEO directory structure also bring up directory websites (listing sites like Yelp or a local business directory). If that is your site, the same rules apply with one addition: listing pages need real content per listing, and location and category pages need to exist as genuine hubs, or the site becomes thousands of thin pages Google will not index. Submitting a business to directories, meanwhile, is a local SEO question rather than a structure one.

Frequently asked questions

What is the best URL structure for SEO?

Short, lowercase, hyphenated URLs in a shallow hierarchy: /services/web-design/ or /blog/post-title/. Every page in one logical folder, no dates or parameters, and no page more than three clicks from the home page.

How many levels deep should a website be?

Two levels for most service businesses, three for shops and large sites. Beyond that, pages get crawled less and the folders stop describing anything useful.

Does URL structure affect Google rankings?

Indirectly but meaningfully. Structure decides how authority flows between pages, how often deep pages are crawled, and whether URLs are readable in results. It is not a ranking factor on its own.

Should I include categories in blog post URLs?

Usually not. /blog/post-title/ is stable; category-based URLs break when categories change and only one category can appear anyway. Large publications with distinct sections are the exception.

Can I change my site structure without losing rankings?

Yes, if every old URL is 301-redirected to its new one and the sitemap is resubmitted. Without redirects the site loses the rankings attached to the old URLs.

What is the difference between site structure and navigation?

Structure is where pages live and how they link; navigation is the menu that exposes some of that structure. A good menu shows the top two levels; the structure can go one level deeper.