A plumber in Phoenix launches a new drain-cleaning page. The navigation links to /drain-cleaning, the sitemap lists /drain-cleaning/, the Google Business Profile points to http://www.example.com/Drain-Cleaning, and a citation site copied the index.html version years ago. Every one of those addresses returns the same page with a 200 status. To a browser they are the same page. To a crawler they are separate URLs competing to represent it.
This is one of the least glamorous technical problems in SEO, and one of the most common on small business sites. It rarely triggers a visible penalty, but it splits link signals, muddies reporting, and occasionally leaves the wrong version in the index. This guide explains how the duplicates arise, how Google handles them, how to choose a single canonical form, how to enforce it at every layer, and how to audit what you have today.
A URL is a string, and crawlers compare strings. Any difference in that string can produce a distinct address, even when your server returns identical content. The usual sources on service-business sites are:
- Protocol:
http://andhttps://both resolving, often after a certificate migration that left the old version reachable. - Host:
www.example.comandexample.comboth serving the site. - Trailing slash:
/water-heater-repairand/water-heater-repair/both returning 200. - Letter case:
/Water-Heater-Repairresolving to the same page as/water-heater-repair, common on Windows and IIS hosting where file paths are not case-sensitive. - Index files:
/,/index.html,/index.php,/default.aspxand/homeall showing the homepage. The same applies to every folder, such as/services/index.html. - Extensions:
/services.htmland/servicesboth live.
Multiply the possibilities and a single page can have a dozen addressable forms. Most are never linked, so no one notices. The trouble starts when some do get linked: by a hand-typed link, a plugin that builds URLs differently from the theme, or a directory that stored your URL in its own format.
Google's documentation on duplicate URLs and canonicalization describes a consistent process. Googlebot groups pages with the same or very similar content into a cluster and chooses one URL to represent it in search results. That URL is the canonical, and the others are crawled less often.
Several details matter for what you do next:
- Different strings are different URLs. The path portion is case-sensitive in Google's treatment, so
/Pageand/pageare distinct. A slash on a non-root path also counts:/pageand/page/are separate addresses. The exceptions are the host name, which is case-insensitive, and the root path, wherehttps://example.comandhttps://example.com/are equivalent. - Canonical selection uses several signals, with different weights. A 301 redirect is a strong signal, a
rel="canonical"tag is a strong hint but not a command, and HTTPS, sitemap inclusion and internal links add weaker signals. When they conflict, the outcome may not be what you intended. - Duplicates are not a penalty. The cost is practical: link equity split across variants, crawl effort spent on copies, and fragmented reports.
- Google may override you. If your canonical tag disagrees with your links, redirects and sitemap, Google can pick the other form, which Search Console reports as "Duplicate, Google chose different canonical than user."
For a local business the practical risks are modest but real: citations pointing at variants, rank trackers showing a URL you do not recognize for your target city keyword, and analytics that split conversions for one page across two rows.
Make four decisions once, write them down, and treat them as site policy.
1. Protocol: HTTPS, always. Redirect all HTTP to HTTPS.
2. Host: www or non-www. Either works for rankings. If your DNS provider cannot place a CNAME at the apex domain, www is easier to operate. Otherwise follow your existing links and print materials. On an established site, do not switch for aesthetics.
3. Trailing slash: with or without. Google has said either is acceptable as long as you are consistent. The pragmatic rule is to follow your platform's native behavior because fighting it creates redirect loops and canonical conflicts. WordPress, for example, builds permalinks with a trailing slash by default and redirects to that form on its own. Many JavaScript frameworks default to no slash, and several offer a setting to flip it. Static hosts usually serve a folder at the slash form and redirect the other to it. Pick one convention for the whole site rather than mixing them.
4. Case: all lowercase. Never create two pages whose URLs differ only by capitalization.
The decision that carries the most risk is changing an existing convention. If your site ranks today with a trailing slash, keep the slash. Switching means 301-redirecting every URL and updating every link, so do it only for a real reason, such as a platform move that cannot reproduce the old convention.
Case. Linux servers usually return a 404 for the wrong-case request, which is harmless unless someone links to it. Windows servers running IIS are case-insensitive by default, so both versions return 200 with identical content, and that is where duplicates appear.
The fix is a server rule that 301-redirects any URL containing uppercase letters in the path to its lowercase equivalent. IIS URL Rewrite has a built-in lowercase rule, and Apache can use a RewriteMap with tolower. Apply it to the path only, because query-string values can be case-sensitive, and exclude files with legitimately mixed-case names.
Index files. Requests to /index.html, /index.php or /home should 301 to /, and the same applies to /folder/index.html pointing to /folder/. A common Apache pattern matches the raw request so it does not loop with DirectoryIndex:
RewriteEngine On
RewriteCond %{THE_REQUEST} \s/+(.*/)?index\.(html|php)[\s?] [NC]
RewriteRule ^ /%1 [R=301,L]Matching on THE_REQUEST, the original client request line, matters. It stops the rule firing on the server's own internal mapping of / to /index.html, which would loop.
A policy only works if every layer agrees. Think of enforcement as four layers, from strongest to weakest, and aim to make all four say the same thing.
Layer 1: server-side 301 redirects. This is the strongest signal and the only one that also fixes the experience for users and links from other sites. The goal is a single hop. A visitor requesting http://example.com/Page should not go through HTTP to HTTPS, then non-www to www, then add a slash, then lowercase. Write rules so that one 301 lands on the final canonical URL. In nginx, for instance, a single server block can send all non-canonical hosts and protocols straight to the canonical address:
server {
listen 80;
listen 443 ssl;
server_name example.com;
# ssl_certificate lines omitted
return 301 https://www.example.com$request_uri;
}Then handle the trailing slash on the canonical host. For a slash-enforced site, a rule such as rewrite ^([^.?]*[^/])$ $1/ permanent; adds a slash to extensionless paths while leaving files like .pdf and .jpg alone. For a no-slash site, do the reverse and strip it with a 301, except at the root. Use 301, not 302, and exclude paths your application needs, such as /wp-admin/ or API endpoints.
If you do not control the server, use the platform: WordPress redirects to your permalink structure, and most static hosts and frameworks have a trailing-slash option. Use that first.
Layer 2: self-referencing canonical tags. Every indexable page should carry a rel="canonical" pointing to its own absolute canonical URL: protocol, host, path in the chosen slash and case form. One common bug: some themes build the canonical from the requested URL, so a variant echoes itself. Generate it from the configured base URL and the stored slug, never from the request. Also make sure the canonical does not contradict the redirect. If the server redirects /page/ to /page but the tag says /page/, you have created a tug of war.
Layer 3: internal links. Redirects are a safety net, not the plan. Every link in the navigation, footer, breadcrumbs, related-service blocks, blog posts, schema url fields, og:url tags and hreflang annotations should use the exact canonical form. This layer is often neglected because old blog posts hold hand-typed links. A search-and-replace followed by a crawl usually fixes it.
Layer 4: sitemaps and external references. The XML sitemap should list only canonical URLs that return 200. No redirects, no variants. Then update external references you control: the website field on your Google Business Profile, citations, social profiles, email signatures, and ad final URLs. A redirecting link still works, but the canonical saves a hop.
Older sites often expose file extensions: /services.html, /contact.php. Extensionless addresses such as /services are cleaner and more portable if you change technology. This is a hygiene choice, not a ranking lever.
If you adopt extensionless URLs, treat them as a full URL migration. The server must serve the extensionless address with a 200, and any request that includes the extension should 301 to the extensionless form. Then update internal links, canonicals and sitemaps. Leaving both forms live simply doubles your duplicates.
One common trap: on many static hosts, a folder containing an index.html is served at /services/ and a request for /services is redirected to add the slash. If you have chosen no-slash as your canonical form but your host enforces the slash, the redirect and your canonical tags will point in opposite directions. Flip your policy to match the host or change the host setting; do not add a conflicting canonical tag.
Keep real extensions on PDFs, images and scripts, and never apply slash or case rewrites to them. Make sure unknown extensionless paths return a true 404, not a soft 200.
You do not need special tools to find out where you stand. Start with a controlled test, then confirm with a crawl and Search Console.
Step 1: test the variant matrix. Take five to ten representative URLs, such as the homepage, a service page and a city page. Request every variant (HTTP/HTTPS, www/non-www, slash or none, uppercase, index file, extension) and record the status chain. From a terminal, curl -sI URL shows each response's status and Location header. Healthy results look like this: the canonical form returns 200, and every other variant returns exactly one 301 to the canonical. Anything with two or more hops, a 302, a 200 on a variant, or a 404 on a legitimate form needs a fix.
Step 2: crawl the site. Run a crawler and filter the results. Look for internal links to redirecting URLs, pages whose canonical differs from their own URL, URLs differing only by case or slash, and sitemap entries that are not 200. A website SEO audit is a quick way to start if you do not run a crawler yourself.
Step 3: read Search Console. In the Pages report, look at "Duplicate without user-selected canonical," "Duplicate, Google chose different canonical than user," and "Alternate page with proper canonical tag." The URL Inspection tool shows both the user-declared canonical and the Google-selected one. If they differ for important pages, one of your four layers is contradicting the others. The Performance report filtered by page can reveal variants collecting impressions, which is a cue to check links and redirects.
Step 4: check logs and analytics. Server logs show which variants Googlebot requests, and backlink reports show which variants other sites link to. Those links keep working through your 301s, but ask your best linking sites to update.
After fixing, recrawl and retest. Expect Google to take weeks to consolidate, and keep the redirects permanently.
Decide once and document it
- Protocol: HTTPS only.
- Host: www or non-www, chosen for operational reasons or to match existing links.
- Trailing slash: follow the platform default and keep the existing form on ranking sites.
- Case: lowercase paths, hyphens between words.
- Homepage lives at
/only.
Enforce at every layer
- One-hop 301 from every variant (protocol, host, slash, case, index file, extension) to the canonical URL.
- No 302s, chains or loops.
- Self-referencing absolute canonical tags built from configured base URL, not the request.
- Canonical tags and redirects agree on the slash and case form.
- Internal links, breadcrumbs, schema,
og:urland hreflang use the canonical form. - Sitemap lists only canonical URLs returning 200.
- Google Business Profile, citations, social profiles and ads point to the canonical URL.
Verify and maintain
- Retest the variant matrix after any deployment that touches routing.
- Crawl quarterly and after any migration, theme change or plugin update.
- Keep redirects permanently and document the policy for future developers.
You can also see how your pages appear to AI search with our AEO check.
Does a trailing slash affect Google rankings?
Not directly. Google treats a slash and no-slash version as two different URLs on non-root paths, but either form is acceptable as a canonical. Rankings suffer only when both versions return content and signals split between them. Choose one, redirect the other with a 301, and keep every link and canonical tag consistent.
Should I use a 301 redirect or a canonical tag to fix duplicate URL variants?
Use both, but lead with the 301. A redirect is a strong, enforceable signal that also fixes the experience for visitors and inbound links. A canonical tag is a hint that Google can ignore. Use self-referencing canonicals on the final page as a backup layer, and make sure the two never contradict each other.
Are uppercase and lowercase URLs really different pages to Google?
Yes, for the path portion. /Services and /services are separate URLs, even though the host name is case-insensitive. If your server returns the same page for both, you have duplicates. Standardize on lowercase, add a 301 rule from mixed-case paths, and avoid creating slugs that differ only by capitalization.
Is it worth switching trailing slash style on an established local site?
Usually not. Changing the convention requires a redirect for every URL, new internal links and a recrawl, with little upside if your current form is consistent. Switch only if you are migrating platforms and cannot reproduce the old pattern. Otherwise, keep what already ranks and fix the inconsistencies around it.
How do I check if my site has duplicate URL variants?
Request each variant of a few key pages with curl or a redirect checker: HTTP versus HTTPS, www versus non-www, with and without a slash, uppercase, and index files. Each non-canonical form should give one 301 to the canonical. Then crawl the site and review Search Console canonical reports for conflicts.
Turn this into a practical SEO action plan
Use RankLocalToday tools to check rankings, diagnose website issues, and prioritize the next organic traffic move.
Get your SEO plan →More in this topic: Website SEO, all 208 guides →