Sub topic 11
Shape the Site Hierarchy from the Map
This chapter assumes you have a keyword map with one primary keyword per page, supporting keywords, and an intent label. It also assumes you know what URLs, categories, and internal links are. Here you use the map to decide how pages nest, which pages become hubs, and what the URLs should look like.
Why the map should drive the hierarchy
Most sites grow in the order that content was written, not in the order that topics relate. A keyword map gives you a second view. It shows which topics are broad and which are narrow, and which pages answer the same kind of query. Site architecture is the structure that expresses those relationships through URLs, navigation, and the page tree.
A sound hierarchy helps in two ways:
- Visitors and crawlers can reach every page by following a short, logical path.
- Related pages sit near each other, so a page's topic is clear from where it lives.
The map does not dictate the hierarchy by itself. It gives you evidence. You still decide how deep the tree goes, and you weigh that against how the business wants to present its products.
Read breadth from the keyword map
Broad keywords tend to become hubs, and specific keywords tend to become children. In the example map from earlier chapters, "running shoes" is broad. "Trail running shoes" is a narrower version of the same topic. "How to choose running shoes" is a related question.
Two signals help you place a keyword:
- Specificity. A keyword that adds a modifier to another keyword (a type, a brand, a use, a size) is usually a child of it.
- Intent. Commercial keywords usually sit in category or product pages. Informational keywords usually sit in guides that support those categories.
Specificity is easy to misread. "Running shoes for flat feet" adds a modifier, but it may deserve its own guide or a filtered category page rather than a deeper level. Check what the search results show before you decide.
Choose the levels
Group the map's pages into levels. A common pattern for a content or shop site has four.
| Level | Role | Example URL | Typical intent |
|---|---|---|---|
| 0 | Home page | `/` | Navigational, brand |
| 1 | Hub or top category | `/running-shoes/` | Commercial |
| 2 | Subcategory | `/running-shoes/trail/` | Commercial |
| 3 | Product or article | `/blog/how-to-choose-running-shoes/` | Transactional or informational |
Keep the tree shallow. A page should usually be reachable in three or four clicks from the home page. Depth by itself is not a penalty, but deep pages get fewer internal links and are crawled less often on large sites.
Turn clusters into a tree
Start from your clusters. For each cluster, find the shortest keyword that still describes it. That keyword is a candidate parent. Then attach narrower clusters under it.
The diagram shows the result for the shoe example.
You can work this out in the keyword map itself by adding two columns: parent_url and level. This lets you check the tree with a script rather than by eye.
url,page_type,primary_keyword,parent_url,level,status
/,home,brand name,,0,existing
/running-shoes/,category,running shoes,/,1,existing
/running-shoes/trail/,category,trail running shoes,/running-shoes/,2,planned
/running-shoes/road/,category,road running shoes,/running-shoes/,2,planned
/blog/how-to-choose-running-shoes/,article,how to choose running shoes,/running-shoes/,2,existingThe guide lives under /blog/ in its URL, but its parent_url is the category it supports. That separates two ideas. The URL path shows where the page is filed. The parent_url column shows which topic hub the page serves. When they disagree, record the topic parent, because internal linking uses it in the next chapter.
Check the tree with a script
Errors creep in when you edit a map by hand. A page may name a parent that does not exist, or the level number may not match the parent's level. This script checks both.
import csv
rows = {}
with open("keyword_map.csv", newline="", encoding="utf-8") as f:
for row in csv.DictReader(f):
rows[row["url"]] = row
problems = []
for url, row in rows.items():
parent = row["parent_url"]
if not parent:
if row["level"] != "0":
problems.append(f"{url}: no parent but level is {row['level']}")
continue
if parent not in rows:
problems.append(f"{url}: parent {parent} is not in the map")
continue
expected = int(rows[parent]["level"]) + 1
if int(row["level"]) != expected:
problems.append(f"{url}: level {row['level']}, expected {expected}")
for p in problems:
print(p)
print(f"{len(problems)} problem(s) found")Run it after every batch of edits. A parent that is missing from the map often means a hub page you forgot to plan, which is a content gap.
Match URLs to the hierarchy
URLs should mirror the tree where they can. /running-shoes/trail/ tells a visitor and a crawler that trail shoes are a kind of running shoe. Some practical rules:
- Use the primary keyword, or a short form of it, as the final URL segment.
- Use lowercase words separated by hyphens.
- Keep URLs short. Do not copy every level of the tree into a path if it adds nothing.
- Do not put filters, dates, or session values in the path of pages you want to rank.
Changing a URL on a live page has a cost. Every renamed URL needs a permanent (301) redirect from the old address, and links and rankings can take time to recover. For existing pages, leave the URL alone unless it is clearly misleading or the restructure is large enough to be worth the risk. For planned pages, choose the right URL once.
Common mistakes
Making the tree match the org chart. Teams often build sections around internal departments rather than around how people search. The map shows the topics people look for, so let it override the org chart.
Going too deep too early. If a subcategory would hold two or three products, merge it into its parent. Thin pages waste crawl attention and often compete with their parent, which brings back the cannibalization problem.
Burying a high-value page. A page with a strong commercial keyword sitting at level 4 gets few internal links. Move it up or link to it from higher pages.
Creating a hub with no content of its own. A category page that only lists links gives a search engine little to rank. Give each hub an introduction, some guidance on choosing, and links to the best children.
Mixing intents under one parent. A transactional category page should not also try to be a long guide. Put the guide on its own page and link the two.
Decide when to flatten or deepen
Use these criteria when you are unsure.
- Add a level when a group of keywords has enough distinct pages under it (as a rough guide, five or more) and when each child has its own search demand.
- Merge a level when the child pages are near-duplicates, or when the SERP overlap between parent and child is high. If the same URLs rank for both keywords, one page can probably serve both.
- Split a page when two intents are mixed and the search results for each keyword look different.
You can reuse the SERP overlap idea from the clustering chapter here. If "trail running shoes" and "running shoes" share most of their ranking URLs, a separate trail page may not be justified yet.
Record the decisions
Write down why each hierarchy choice was made, either in the notes column or in a separate document. Six months later, someone will ask why a page sits where it does. A short note like "merged road shoes into parent: SERP overlap 7 of 10" saves a repeat of the analysis.
Exercise
A keyword map lists /blog/how-to-choose-running-shoes/ with the topic parent /running-shoes/. A teammate says the URL should be moved to /running-shoes/how-to-choose/ so the path matches the parent. List two costs of making that change on a live page, and say what you would record in the map if you decide not to move it.
Show answer
Two costs are the need for a 301 redirect from the old URL, and the risk that rankings and inbound link value take time to recover after the change. Existing links, bookmarks, and any hard-coded internal links also need to be updated. If you do not move it, keep the URL as it is, set parent_url to /running-shoes/ so the topic relationship is recorded, and add a note explaining that the path and topic parent differ on purpose.
Exercise
The validation script prints "/running-shoes/trail/: level 3, expected 2". What are the two likely causes, and how do you tell which one is correct?
Show answer
Either the level value was typed wrongly, or the parent_url is wrong (for example, the page was meant to sit under a different parent that is at level 2). Check the page's topic and its URL path. If it is a direct subcategory of /running-shoes/ and the parent is correct, change the level to 2. If the topic belongs under a deeper page, fix the parent and keep level 3.