Crawlability · Explainer

URL consistency

A trailing slash, a www, an uppercase letter. To a person these are the same page. To a search engine they are four different URLs competing for the same ranking with a quarter of the evidence each.

One page, four addresses

URLs are compared as exact strings. Every difference, however cosmetic, creates a separate address.

A single article can be served at /guide, /guide/, www.example.com/guide and /Guide. If all four return 200, you have not published one page, you have published four copies. Links from other sites land on whichever variant they happened to copy, so authority splits across them. Search engines usually pick one and treat the rest as duplicates, but the choice is theirs, and the page they pick may not be the one your internal links point to. The result is a page that ranks below what its links should earn, with no obvious error to find.

Where the variants come from

Nobody creates these on purpose. They accumulate from defaults and edits.

Frameworks disagree by default: some append a trailing slash to every route, some strip it, some allow both. A site that changes platform, or runs a marketing section on different software from the main app, ends up serving both styles at once without anyone deciding to.

Internal links drift the same way. One template links /pricing, a footer written later links /pricing/, and a campaign page links the www variant. Each is a real, crawlable URL. The site keeps working perfectly for visitors, which is exactly why this goes unnoticed for years.

The four rules that settle it

Pick a form for each, enforce it with a redirect, and link only to the chosen form.

Trailing slash: pick one

Neither style is better for ranking. What matters is that only one returns 200 and the other 301s to it.

A common convention is a trailing slash for directory-like paths and none for file-like ones. Any consistent rule works; two live variants do not.

www or bare domain: pick one

Again the choice is free and the consistency is not. Redirect the unused form to the chosen one at the server, so it applies to every path at once.

Check it resolves in one hop. Sending bare to www and then http to https as two separate redirects builds a chain on every request.

HTTPS only

The http variant of every URL should 301 to https. This is usually configured correctly at the root and forgotten on subdomains or legacy paths.

Test a deep URL, not just the homepage. A certificate that covers the apex but not a subdomain leaves a whole section reachable over http: see TLS certificate issues.

Lowercase paths

Paths are case-sensitive on most servers, so /Guide and /guide can serve different responses or one can 404.

Standardise on lowercase and redirect mixed-case requests. This matters most where URLs are generated from titles or user input, which is where stray capitals enter.

Redirects are the enforcement, canonicals are the backstop

Both have a role, and using only the second leaves the problem half solved.

A 301 removes the duplicate: the variant stops returning 200, so there is only ever one live address and nothing to consolidate. A canonical tag leaves every variant live and asks search engines to credit one of them, which they treat as a strong hint rather than an instruction. Use redirects as the mechanism and canonicals as a safety net for variants you cannot redirect, such as URLs carrying tracking parameters.

Then fix the links. If internal links still point at the redirected form, every visit pays an extra hop and crawlers spend budget walking redirects instead of reading pages. The finished state is simple to state and worth checking directly: one form returns 200, all others 301 to it in a single hop, and every internal link points at the form that returns 200. See what a canonical tag does for where the backstop genuinely helps.

Canonicalization signals: why they need to agree

A URL's preferred form is not decided by one tag, it is decided by consensus across several signals.

Search engines look at several signals when deciding which URL of a set of duplicates to treat as canonical: the canonical tag itself, redirects, the URLs listed in your sitemap, and the form your own internal links overwhelmingly use. None of these is absolute on its own, they are weighed together, which is why a canonical tag can be overridden when everything else on the site contradicts it.

This is the practical reason trailing-slash, www and protocol consistency matter beyond tidiness: every inconsistent internal link is a small vote for the wrong URL, and enough of them can outweigh a correctly set canonical tag. Keeping all four signals, redirects, canonical, sitemap and internal links, aligned on the same form is what makes canonicalization reliable rather than a coin flip Google resolves for you.

URL consistency questions, answered

Does a trailing slash affect SEO rankings?

Not on its own, neither form ranks better than the other. The damage comes from serving both as separate live URLs at once, which splits links and authority between two addresses instead of pooling them on one. Pick either convention, redirect the other to it, and the trailing slash itself stops being a ranking factor.

Should I use www or non-www for my domain?

Neither is better for SEO, Google treats www.example.com and example.com as equally valid choices. What matters is picking one, redirecting the other to it with a single-hop 301, and making sure every internal link, canonical tag and entry in your sitemap consistently uses the chosen form.

What are canonicalization signals?

Canonicalization signals are every place a URL preference gets stated: the canonical tag, the sitemap, internal links, and redirects. Search engines weigh them together rather than trusting any single one absolutely. When they all name the same URL, that URL reliably wins. When they disagree, a canonical tag pointing one way while internal links point another, the strongest, most consistent signal usually wins instead, which means a page's own canonical tag is not guaranteed to be followed if everything else on the site contradicts it.

Is it enough to set a canonical tag instead of redirecting duplicate URLs?

It helps, but a canonical tag alone leaves the duplicate URL live and reachable, asking search engines to credit another URL instead of resolving the duplication outright. A 301 redirect actually removes the duplicate, since the old URL stops returning 200 and sends both users and crawlers to the destination in one step. Use a redirect whenever the duplicate does not need to stay accessible, and reserve the canonical tag as a backstop for variants you cannot redirect, such as tracking-parameter URLs.

How do I check which URL variants my site actually serves?

Request the same page with and without a trailing slash, with and without www, and over both http and https, checking the status code each time with a tool like curl -I. Any variant that returns 200 instead of redirecting to your chosen form is a live duplicate. A full site crawl that records the final resolved URL for every internal link is the most reliable way to find these across an entire site rather than page by page.

Find the URLs your site serves twice

Free to start. Flags pages linked both with and without a trailing slash, plus redirect chains and mixed protocol links.

Start my free audit