SEO & Redirects

What is URL structure?

URL structure is the format, organisation, and hierarchy of web addresses, the pattern and conventions that determine how URLs are constructed across a website. It encompasses the choice of protocol, domain, subdomain or subdirectory organisation, directory depth, slug format, parameter usage, and all other elements that shape what a site’s URLs look like and how they communicate the organisation of the site’s content.

A URL, Uniform Resource Locator, is the complete address of a specific resource on the web. Every element of a URL communicates something, the protocol specifies the connection method, the domain identifies the site, the path communicates the content location within the site, and parameters provide additional context. URL structure is the system of decisions that determines how these elements are combined across an entire website.

URL structure matters for SEO because URLs are signals, to search engines about content hierarchy and topic relevance, to users about what they will find at a destination, and to other websites that may link to the content. Clean, logical, descriptive URL structures support SEO by reinforcing content organisation signals and providing human-readable addresses that earn more clicks from search results and more natural backlinks from other sites.

URL structure matters for redirect management because changes to URL structure, one of the most common triggers for redirect requirements, create 404 errors for all old URLs and require comprehensive redirect mapping. Understanding URL structure principles helps design URL systems that minimise future redirect needs while supporting optimal SEO performance.

Anatomy of a URL

A complete URL has multiple components, each serving a specific technical and communicative purpose.

Protocol: the communication protocol used to access the resource. https:// for secure encrypted connections, the standard for all modern websites. http:// for unencrypted connections, still functional but increasingly discouraged by browsers and lacking the security, performance, and ranking benefits of HTTPS.

Subdomain: an optional prefix before the main domain. www.example.com: the www subdomain. blog.example.com: a blog subdomain. app.example.com: an application subdomain. Subdomains are independent DNS entities that can point to different servers and be managed separately from the root domain. For SEO subdomains are treated as related to but somewhat separate from the root domain, content on blog.example.com is associated with example.com but may develop its own authority profile.

Root domain: the registered domain name and TLD combination. example.com. The domain is the primary identifier for the site, the anchor around which all URLs are built.

Path: the directory and file structure following the domain. /products/widgets/best-widget: a three-level path with two directory levels and a page slug. The path communicates content hierarchy and location, telling both users and search engines where the page sits in the site’s organisation.

Query string: parameters appended after a ? character. ?sort=price&colour=red: two parameters specifying sort order and colour filter. Query strings are used for dynamic content variation, tracking parameters, session IDs, and many other purposes. URLs with query strings are technically distinct from their base URLs, /products?sort=price and /products?sort=name are different URLs even when serving similar content.

Fragment: the portion following a # character. #section-3: a fragment specifying a specific section within the page. Fragments are processed entirely by the browser, they are not sent to the server and do not affect which page is served. Search engines generally ignore fragments when indexing URLs.

URL structure principles for SEO

Several well-established principles guide URL structure decisions for optimal SEO performance.

Descriptive and readable: URLs should communicate what the page contains, example.com/seo/redirect-management-guide is more descriptive than example.com/page?id=4532. Descriptive URLs reinforce content relevance signals for search engines and earn more clicks from search results, users are more confident clicking a URL that tells them what to expect.

Including relevant keywords in URL slugs, the readable portion of the path, contributes a minor but real relevance signal. A page at example.com/301-redirect-guide has a small URL-based relevance signal for queries about 301 redirects that example.com/page123 lacks.

Short and concise: shorter URLs are easier to share, more memorable, less likely to break when copied, and more readable in search results. The path should be as short as possible while remaining descriptive. Removing unnecessary words, stop words like a, the, and: from slugs keeps URLs concise without losing descriptive value.

Lowercase: URL paths are technically case-sensitive. example.com/Page and example.com/page are different URLs, serving the same content at both creates duplicate content. Using lowercase consistently across all URL paths eliminates case variant duplicates and simplifies URL management.

Hyphens not underscores: word separators in URL slugs should be hyphens, redirect-management-guide: not underscores, redirect_management_guide. Google treats hyphens as word separators but treats underscores as word connectors, redirect-management is three separate words while redirect_management is one combined word. Hyphens provide better keyword separation signals.

Logical hierarchy: URL paths should reflect content hierarchy, parent categories containing subcategories containing pages. example.com/products/widgets/blue-widget communicates that blue-widget is a type of widget which is a type of product. Logical hierarchy helps users understand where they are in the site and helps search engines understand content relationships.

Avoiding unnecessary parameters: URL parameters for tracking, sorting, filtering, and session management create URL variants that generate duplicate content issues. Minimising parameters in URLs, or canonicalising parameter variants, keeps the URL space clean and manageable.

Static over dynamic: static, readable URLs, example.com/products/widget-name: are preferable to dynamically generated parameter-heavy URLs, example.com/index.php?cat=5&prod=42. Static URLs are more descriptive, more shareable, and create cleaner URL spaces without the duplicate content risks of parameter variants.

URL structure and content organisation

URL structure reflects and reinforces content organisation, the two should be designed together rather than independently.

Flat vs deep hierarchy: URL depth, the number of directory levels in the path, affects both SEO and user experience. Very flat structures, all pages at root level, are simple but lose the hierarchy signals that communicate content relationships. Very deep structures, example.com/a/b/c/d/e/page: communicate complex hierarchy but may be perceived as less authoritative for deep pages.

For most sites a two to three level hierarchy provides sufficient organisation without excessive depth. example.com/category/subcategory/page communicates three levels of organisation, enough for most content structures without pages being buried too deep.

Category and subcategory naming: category names in URLs should be concise, descriptive, and keyword-relevant. A product site might use example.com/clothing/mens-jackets/waterproof: three levels communicating the product hierarchy clearly. Category names should be stable, changing category names changes all URLs within the category, requiring comprehensive redirects.

Subdomain vs subdirectory: a significant URL structure decision is whether to host related content, a blog, documentation, a shop, on a subdomain, blog.example.com: or in a subdirectory, example.com/blog. The SEO implications are discussed extensively in the subdomain article, subdirectories consolidate authority more directly while subdomains enable operational independence. URL structure decisions about subdomain vs subdirectory have long-term implications that are expensive to change.

URL structure and redirect management

URL structure decisions and redirect management are deeply intertwined, URL structure changes are one of the most frequent triggers for redirect requirements.

URL restructuring and redirect requirements: any change to URL structure creates redirect requirements for every URL affected by the change. Changing from /blog/2024/01/article-title to /blog/article-title requires redirects for every URL with the old date-based structure. Changing from /products?id=123 to /products/product-name requires redirects for every old parameter-based URL. The scope of redirect requirements scales with the scale of URL structure change.

The redirect map is a URL structure document: when URL structure changes the redirect map, documenting every old URL and its new equivalent, is essentially a mapping between the old URL structure and the new. Building the redirect map requires understanding both URL structures thoroughly, which old URL patterns correspond to which new URL patterns.

Pattern-based redirects for structure changes: URL structure changes that follow consistent patterns can often be addressed with wildcard redirect rules rather than individual URL mappings. A change from date-based blog URLs to date-free URLs, /blog/2024/01/article to /blog/article: can be handled with a wildcard rule that strips the date segments rather than mapping each URL individually.

Designing URL structures to minimise future redirects: the best URL structure is one that does not need to change. Designing URL structures around stable content attributes, topic, product name, category, rather than volatile attributes, dates, sequential IDs, database IDs, reduces the frequency of URL structure changes and therefore reduces future redirect requirements.

Avoid including attributes in URLs that are likely to change. Product IDs that get reassigned, dates that become irrelevant, category names that get reorganised, all of these are poor URL slug components because they create redirect needs when they change.

URL structure best practices by content type

Different content types have distinct URL structure considerations.

Blog and article content: example.com/blog/article-slug. Including the full date, example.com/blog/2024/01/15/article-slug: creates unnecessarily deep paths and requires redirects if the date format changes. A flat blog structure with just the slug, example.com/blog/article-slug: is cleaner and more durable. For sites that benefit from category organisation, example.com/blog/seo/redirect-management-guide: one category level provides organisation without excessive depth.

E-commerce products: example.com/products/category/product-name or example.com/category/product-name. Product URLs should use stable product names or slugs rather than database IDs, example.com/products/blue-widget is preferable to example.com/products?id=4532. Stable product slugs mean product URLs do not need to change when database IDs are reassigned.

Service pages: example.com/services/service-name. Simple, flat structure reflecting the service offering directly. Avoid including unnecessary qualifiers, example.com/our-professional-services/service-name-service adds no SEO or user value.

Location pages: example.com/locations/city-name or example.com/city-name. Location-based URL structures should be stable, location names rarely change, and descriptive.

Documentation: example.com/docs/section/page-name. Documentation benefits from clear hierarchical structure reflecting the documentation organisation. Version numbers in documentation URLs, example.com/docs/v2/section/page: require redirects when versions change, consider version-neutral URL patterns for long-lived documentation.

Changing URL structure, when and how

Despite the redirect overhead URL structure changes are sometimes necessary, when the current structure has significant SEO or usability problems that outweigh the migration cost.

When to change URL structure: URL structure changes are justified when the current structure creates significant SEO problems, excessive parameter usage creating massive duplicate content, very deep hierarchy burying important content, non-descriptive URLs missing relevance signals, or when the current structure cannot accommodate the site’s content growth without becoming unmanageable.

URL structure changes are not justified for cosmetic reasons, minor improvements, or personal preference, the redirect overhead and temporary ranking disruption are significant costs that require proportionally significant benefits.

Comprehensive redirect planning: a URL structure change requires the same thorough redirect planning as a domain migration, complete URL inventory, comprehensive redirect map, verification of all redirect destinations, bulk deployment of redirect rules. Every old URL must be covered, either by a specific redirect rule or a wildcard rule that handles the URL pattern.

Timing URL structure changes: combining a URL structure change with other significant site changes, a platform migration, a domain change, a major redesign, concentrates the redirect overhead into one migration event rather than multiple sequential disruptions. Avoiding URL structure changes immediately before high-traffic seasons, major commercial periods, planned campaigns, minimises the business impact of any temporary ranking disruption.

Related terms

Related terms

Ready to keep every link alive?

Ready to keep every link alive?

Ready to keep every link alive?