Sub topic 11
Map the Structure to URLs
This chapter assumes you understand basic website navigation, links, menus, and search boxes. It also assumes that you have drafted a simple sitemap with pages arranged into levels. You will now translate that structure into URL paths that are readable, stable, and useful.
Why URL structure matters
A URL is the web address of a page. Its path is the part after the domain name, such as /billing/invoices/. A well-designed path gives useful clues about the page's location and purpose.
URL structure supports several goals:
- It helps users understand where a link leads before opening it.
- It gives search engines information about relationships between pages.
- It makes links easier to copy, read, and remember.
- It gives developers a consistent route structure.
- It supports analytics and redirects when the content changes.
The URL should reflect the information architecture, but it does not need to reproduce every visual detail of the interface. A page can appear in several navigation paths while having one main, canonical URL. A canonical URL is the preferred address for a page when multiple addresses could show the same content.
Mirror meaningful hierarchy
Use short, stable words that match the labels in the sitemap. A path usually starts with a top-level section and then names more specific pages.
| Sitemap location | Example URL | What it communicates |
|---|---|---|
| Home | `/` | The site or product home |
| Account security | `/security/` | A top-level section |
| Reset your password | `/security/reset-password/` | A page inside that section |
| Download invoices | `/billing/invoices/` | A page inside billing |
Keep the path readable. Prefer /security/reset-password/ to /section-3/article-1847/. Use lowercase letters, hyphens between words, and nouns or short task names that users recognize.
A URL path can represent containment, but it should not become excessively deep. Three or four meaningful levels are often easier to maintain than a path that copies every internal category. If the sitemap contains a purely visual grouping, such as a dropdown label that has no page, do not force that grouping into the URL.
Keep addresses stable
Changing a URL can break bookmarks, search results, shared links, and links from other sites. Treat a published URL as a long-term identifier.
When a page must move, create a permanent redirect from the old address to the new one. A redirect automatically sends a request for one URL to another. Update internal links as well, but keep the old redirect for existing users.
Avoid putting information in a path that changes frequently. For example, /reports/2026/ may be correct for an archive organized by year, but /team-alex/ can become misleading if the team changes its name. Choose whether the changing value belongs in the path, a query parameter, or the page's content.
Separate page identity from filters
Query parameters are the key-value pairs after a question mark, such as ?sort=latest. They usually represent a view, filter, search, or temporary state rather than a separate page.
For example:
/products/identifies the product collection./products/?category=chairsshows a filtered view./search/?q=keyboardrepresents a search request./billing/invoices/2026/may identify a distinct archive page if years are part of the content model.
Use consistent parameter names and encode special characters safely. Do not create many equivalent URLs that differ only in capitalization, trailing slashes, parameter order, or tracking values. Normalize these variations where possible.
Map the sitemap to routes
Start with the sitemap and write one preferred path for each important page. Check that every path has a clear owner, a unique purpose, and a corresponding page title. Then check links between parent and child pages.
The URL structure should also work when a user lands directly on a child page. Include breadcrumbs or other contextual navigation so the user can move back to its parent section. Test copied links, browser refreshes, old links, and pages with missing or invalid path segments.
Review the structure before launch
Use this checklist:
- Does each important page have one preferred URL?
- Do labels in the URL match words users understand?
- Are paths short enough to scan?
- Are capitalization and pluralization consistent?
- Are filters and searches separate from page identity?
- Are redirects planned for moved or renamed pages?
- Can a user infer the page's location from the path?
- Do permissions still work when someone opens a deep link directly?
URL design is part of information architecture, not just a developer detail. A readable and stable URL makes the structure visible wherever a link appears.
Exercise
You have a page titled “Download invoices” under “Billing.” Which URL is the clearest choice: /page?id=82, /billing/invoices/, or /billing/download-invoices-now/? Why?
Show answer
/billing/invoices/ is the clearest choice. It uses the sitemap hierarchy, stays short, and names the content without adding unnecessary promotional wording.