Skip to content
Guides

Site structure for SEO: how to build a logical hierarchy

How do you organise a website logically? Tips for menus, categories, internal links, breadcrumbs and URLs, with examples and mistakes to avoid.

What is the hierarchy of a website?

The hierarchy of a website is how its pages are organised from general to specific: the homepage at the top, your main topics below it, and the individual pages below those. Think of a shop. The name is above the entrance, signs point to the departments, and each department keeps its products together.

Here's an example for a landscaping company:

Homepage
├── Garden design
│   ├── Paving
│   ├── Ponds
│   └── Fencing
├── Garden maintenance
│   ├── Pruning
│   └── Lawn care
├── Projects
└── Contact

Anyone who lands on "Ponds" can see straight away that it belongs to garden design, and can find the other services there too.

This article covers the hierarchy between pages. You create the hierarchy within a page with headings, which we explain in H1 and subheadings.

Why does a logical structure matter for SEO?

A logical structure helps visitors find their way, and helps search engines discover your pages and see how they relate to each other.

  • Finding pages. Google uses links to find new pages and as a signal when it determines how relevant a page is (Google on links).
  • Understanding relationships and importance. In its guide for online shops, Google says that the number of links to a page, and the number of links needed to reach it, can help it infer how important the page is within your site. As a general rule, the more internal links a page has, the more important it is relative to your other pages (Google on online shops).
  • Sitelinks. These are the extra links that sometimes appear below a search result. Google picks them automatically based on your link structure, and recommends a logical site that's easy to navigate (Google on sitelinks). You can't set them yourself.
  • Google's AI features. According to Google, the way Search finds and processes pages is also the basis for its AI features. That means your content needs to be crawlable.

Don't expect a new structure to work miracles on its own. In its SEO Starter Guide, Google says that search engines will likely understand your pages as they are now, however your site is organised. So don't start rebuilding everything straight away: a good structure mainly pays off in the long term, especially on larger sites.

How do you plan a good structure?

Start with your visitors' questions, group pages that belong together, and give each group a clear overview page.

  1. List all your pages. A spreadsheet with the URL, topic and purpose of each page is enough.
  2. Group them by topic. Think like a customer, not like your company's departments. A customer looks for "boiler service", not "Service business unit".
  3. Give each group an overview page. Briefly explain what people will find there, and link to the pages below it.
  4. Choose one page for each purpose. Do two pages answer exactly the same question? Merge them.
  5. Check the names. Would someone who doesn't know your company understand straight away what's behind each menu item?

How many levels you need depends on what you offer. For a small site, a homepage, a few main pages and perhaps one level below them are often enough. A large online shop needs more. Only add a level if it makes choosing easier.

Less good Better Why
Solutions Garden design The name says what you offer
Other Frequently asked questions Visitors know what they'll find
A category with one page A single regular page An extra click with nothing to choose helps no one
25 items side by side in the menu A few clear groups The menu is quicker to scan

Link from overview pages to the pages below them and back again, and connect related topics within your text. Google says that every page you care about should have a link from at least one other page on your site. There's no magic number of links per page.

For online shops, Google describes a clear route: from the menu to categories, from categories to subcategories, and from there to all products. A search box doesn't replace those links. Googlebot generally doesn't fill in search boxes when it crawls a site.

Use real links. Generally, Google can only follow a link if it's an <a> element with an href:

<!-- Less good: not a real link -->
<span onclick="location.href='/garden-design/ponds'">Ponds</span>

<!-- Better -->
<a href="/garden-design/ponds">Garden pond installation</a>

Write link text that says where the link goes. Google describes good link text as descriptive, reasonably concise and relevant to both pages:

<!-- Less good -->
<p>Want to know how we build a pond? <a href="/garden-design/ponds">Click here</a>.</p>

<!-- Better -->
<p>Read how we <a href="/garden-design/ponds">build a garden pond</a>.</p>

Google suggests a useful test: read only the link text. Is it still clear what the page is about? Don't cram in a list of keywords, and don't put a whole series of links right next to each other. Find out more under internal links.

Link more often to the pages that really matter. Google's example is linking to your best-selling product from the homepage or a blog post.

What is a breadcrumb trail and how do you add one?

A breadcrumb trail is a row of links that shows where a page sits within the site, such as "Home › Garden design › Ponds". Visitors can use it to go back up one level at a time. That's especially useful for people who arrive in the middle of your site from a search engine.

Here's an accessible breadcrumb trail. The W3C places it in a labelled navigation landmark and gives a link to the current page aria-current="page" (W3C):

<nav aria-label="Breadcrumb">
  <ol>
    <li><a href="/">Home</a></li>
    <li><a href="/garden-design">Garden design</a></li>
    <li><a href="/garden-design/ponds" aria-current="page">Ponds</a></li>
  </ol>
</nav>

You can give Google the same trail with structured data:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    { "@type": "ListItem", "position": 1, "name": "Garden design", "item": "https://www.example.com/garden-design" },
    { "@type": "ListItem", "position": 2, "name": "Ponds", "item": "https://www.example.com/garden-design/ponds" }
  ]
}
</script>

Keep these three points from Google's documentation in mind:

  • A BreadcrumbList has at least two items. You don't have to include the homepage or the current page.
  • Choose the path visitors usually take. It doesn't have to match the structure of the URL.
  • According to the documentation, Google shows this feature in desktop search results. There's no certainty that your trail will appear there. A visible breadcrumb trail is useful for your visitors either way.

Do you use a CMS? First check whether your theme or SEO plugin already does this, so the code doesn't end up on the page twice.

How do you create clear URLs?

Make URLs readable, using words in your visitors' language with hyphens between them. These recommendations come from Google's URL guidelines.

Less good Better
/index.php?id=4827 /garden-design/ponds
/garden_design/build_a_pond /garden-design/build-a-pond
/tuinaanleg/vijvers on an English site /garden-design/ponds
/#/ponds for a separate page /ponds

The last row is about fragments, the part after the #. You can use them to jump to a section of the same page, but don't use them to load different content: Google Search generally doesn't support that.

Folders such as /garden-design/ make a URL easier for people to follow. Don't expect them to boost your rankings. According to the SEO Starter Guide, keywords in a URL path have hardly any effect on their own, beyond appearing in breadcrumbs. Google says that how you organise content in folders may only start to affect crawling and indexing once you have more than a few thousand URLs.

What should you avoid?

Most problems come from pages without links, duplicate pages, and major rebuilds without a plan.

  1. Leaving pages without internal links. These orphan pages are hard for visitors and crawlers to find, even if they're in your sitemap.
  2. Relying only on a search box or filter. Make sure people and crawlers can also reach important pages through regular links.
  3. Creating a page for every keyword variation. "Pond installation", "have a pond installed" and "have a pond built" are usually about the same question. Create one good page instead.
  4. Putting the same content on several URLs. This doesn't violate Google's spam policies, but it can be confusing and waste crawling resources. Choose one URL and redirect the others to it. If you can't, use a canonical.
  5. Stuffing your footer with links. A list of dozens of place names or keywords doesn't help anyone choose.
  6. Changing URLs without redirects. Google recommends using a permanent server-side redirect where possible, with status code 301 or 308 (Google on redirects). Send each old URL to the page that matches it best, rather than sending everything to the homepage.
  7. Completely rebuilding a working site for SEO. Start with better links and clearer names. You usually don't need to change a single URL for that.

How do you check your site's structure?

Look at your site as a new visitor would, then check that every important page has links pointing to it.

  1. Do a click test. Ask someone who doesn't know your site to find three important pages from the homepage without using the search box. Watch where they hesitate.
  2. Compare your page list with your links. Can you reach every page from the menu, an overview page or another piece of text? On larger sites, a crawler that follows links can check this automatically. Pages that are in your sitemap but aren't found may have no internal links.
  3. Check a page in Google Search Console. URL Inspection shows whether Google knows about the page. The Links report shows which pages have internal links. Google says it's only a sample, so a page that isn't listed may still have links.
  4. Check your breadcrumb trail. Test the structured data with Google's Rich Results Test.
  5. Look at the links in the HTML. Search the source code (Ctrl+U) for <a href. Google can also process links added with JavaScript, as long as they're real <a href> links. Not every crawler runs JavaScript. See server-side rendering.

Checklist

  • Every page has a logical place under a main topic.
  • Menu items have names that a new visitor understands straight away.
  • Every main topic with pages below it has an overview page.
  • Every important page has at least one internal link pointing to it.
  • The most important pages have more links and are quick to reach from the homepage.
  • Links are real <a href> links with descriptive text.
  • Deeper pages have a breadcrumb trail.
  • URLs are readable, with hyphens between the words.
  • Each question has one clear page, with no duplicates.
  • Changed URLs have a permanent redirect.

The free scan doesn't assess your menu or internal links, but among other things it does check whether you have an XML sitemap, whether your homepage has a canonical and whether its headings are clearly structured.

Frequently asked questions

How many clicks from the homepage can a page be?

The Google documentation we used for this article doesn't give a maximum. For online shops, Google does say that the number of links it needs to follow to reach a page can help it infer how important that page is within your site. So keep your most important pages close to the homepage, but don't turn it into a calculation.

Does the hierarchy have to show in my URLs?

No. Google generally doesn't look at the structure of URLs to work out how a site is organised; it looks at the links. Folders in your URLs are useful for people, though, and once you have more than a few thousand URLs, Google says they may affect crawling. Don't change existing URLs just to add folders.

Is an XML sitemap enough if I have few internal links?

A sitemap helps search engines find pages, but it doesn't show visitors how your site fits together. Links between pages also give context and show what matters. So use a sitemap as an addition. Google mentions it as a fallback when you can't link to all your pages.

Does a good site structure help you appear in AI answers?

The AI features in Google Search build on the same technical basics as regular search. Among other things, a page must be indexed and eligible to be shown with a snippet, and Google advises making your content crawlable. Clear links help pages get found, but they don't ensure that you'll appear in an answer.

Sources

  1. Google Search Central: SEO Starter Guide
  2. Google Search Central: Link best practices for Google
  3. Google Search Central: Help Google understand your ecommerce website structure
  4. Google Search Central: URL structure best practices for Google Search
  5. Google Search Central: Breadcrumb (BreadcrumbList) structured data
  6. Google Search Central: Sitelinks
  7. Google Search Central: Redirects and Google Search
  8. Google Search Central: Optimizing your website for generative AI features on Google Search
  9. Search Console Help: Links report
  10. W3C WAI: Breadcrumb Pattern

How visible is your website?

Find out for free how you score in Google and in ChatGPT, Gemini and Claude.

Start free scan

Read also