Website monitoring · No. 19
Duplicate URL check
In short
Duplicate URLs are when one and the same page opens at several addresses: with and without www, over http and https, as /index.php, or with and without a trailing slash. Visitors don’t notice the difference, but a search engine sees several copies of the page and decides on its own which one to show. Every extra address should lead to the main one with a permanent (301) redirect. A canonical tag is only a hint for Google, while a redirect removes the duplicate for both people and search. Most often the redirect disappears after moving to another host or changing server settings.
Contents
What are duplicate URLs?
Each page should have a single address. But a server is often ready to return the same page at several variants of the address — and unless it’s told otherwise, there’s no redirect to the main variant.
| What happens | Extra address | Should lead to |
|---|---|---|
| Site with and without www | https://www.example.com/ | https://example.com/ |
| Site over http and https | http://example.com/ | https://example.com/ |
| Home page at a file address | /index.php, /index.html | / |
| Home page at a CMS address | /index.php?route=common/home (OpenCart) | / |
| Page with and without a trailing slash | /catalog/lamps/ | /catalog/lamps (or the other way round) |
For a search engine, each such variant is a separate address. From a set of identical pages, Google picks one — the canonical:
“…a canonical URL is the URL of a page that Google chose as the most representative from a set of duplicate pages.”
Among the typical causes of duplicates, Google explicitly names the HTTP and HTTPS versions of a site (same source). Case and parameters follow the same rule: Google treats /APPLE and /apple as different addresses (Google documentation).
What’s the harm in duplicate URLs?
The site opens and there are no errors — which is why duplicates live on for years. But they have consequences:
- Google picks the address for search itself. It may show an address you don’t consider the main one — for example, with
/index.phpor without https. - Signals get split. Links to the site point to different address variants, and their weight is divided between the copies.
- Crawl time is spent on copies. The search crawler fetches the same page several times instead of new pages.
- An unsecured version of the site. If the site opens over http without moving to https, a visitor may stay on a page without encryption.
- Analytics and ad reports split pages. One page appears in the stats as several rows, and its traffic falls apart into pieces.
Google itself lists why duplicates should be consolidated:
“To consolidate signals for similar or duplicate pages. To avoid spending crawling time on duplicate pages. To specify which URL that you want people to see in search results.”
Why do you need a redirect rather than a canonical tag?
The <link rel="canonical"> tag tells Google which address to treat as the main one. But it’s a hint, not an order:
“That is, indicating a canonical preference is a hint, not a rule.”
Besides, only search engines see a canonical tag. Visitors, ads, social networks and analytics still work with the duplicate. A redirect removes the extra address for everyone: whoever opens it lands on the main one.
Which redirect matters. A permanent one (status codes 301 or 308) says the page has moved for good; a temporary one (302, 307) says it’s only for a while. Google explains the difference like this:
“Permanent redirects: Show the new redirect target in search results. […] Temporary redirects: Show the source page in search results.”
So duplicates need a permanent server-side redirect — Google recommends using one whenever possible (same source). And it’s better to go straight to the main address: a chain like http://www → http:// → https:// means extra requests and delay.
Where do duplicate URLs come from?
Almost always from server settings, not from the site itself:
- Moving to another host. The redirect rules lived in the
.htaccessfile or in the old host’s server settings — and weren’t carried over to the new one. - A certificate without a redirect. The site moved to https, but the http version still opens on its own.
- CMS quirks. Many CMSs also serve the home page at a file or internal route address:
/index.php,/index.php?route=common/homein OpenCart. - CDN or proxy settings. The redirect to https or to the non-www version was enabled in one place and changed in another.
- Slash routing. The site responds to both
/pageand/page/, and nobody decided which one is the main variant. - CMS or plugin updates. The plugin responsible for the redirect was disabled or updated.
How do you spot duplicate URLs?
The signs show up in the address bar when you open the extra variants of the address:
| What you see | Likely cause | What to do |
|---|---|---|
| The site opens with and without www, and the address bar doesn’t change | No redirect between the variants | Set up a permanent redirect to the main variant |
| At http:// the site opens without moving to https:// | No redirect to https | Set up a permanent redirect to https |
/index.php shows the home page | The CMS serves the home page at a file address | A permanent redirect from /index.php to / |
| A page opens both with and without a slash | The server hasn’t chosen a main variant | One server rule for all pages |
| There is a redirect, but with code 302 | A temporary redirect is set up | Change it to permanent (301) |
| After a move, the www version opens separately again | The redirect rules weren’t carried over | Restore the rules on the new server |
| In Search Console, Google chose a different canonical | Duplicates exist, and Google chose for you | Remove duplicates with redirects |
How to check for duplicate URLs yourself
You’ll need a browser and a few minutes:
- In a private window, open four variants of the home page: with and without www, over http and https. Look at the address you land on each time: it should be the same one.
- Add
/index.phpand/index.htmlto the home page address. You should get a 404 error or a redirect to the home page — not the home page itself. - For important pages, open the address with and without a trailing slash. One variant should redirect to the other.
- To see the redirect code, open the developer tools (
F12) → Network tab and reload the page: the first row should show 301 or 308. You’ll also see whether there are several redirects in a row. - Repeat after every move, change of hosting, certificate or CDN settings.
- Or use the FullCheckApp “Duplicate URLs” check and get the results in a clear visual format.
Checking this once is easy. The hard part is noticing the day the redirect disappeared after server work.
If you chose the last option, you’ve already made the right call: the check runs automatically, and you’ll be the first to know about any warning or critical issue.
What FullCheckApp checks
“Duplicate URLs” is one of the checks in the SEO block. Every day, FullCheckApp opens the extra variants of addresses and looks at where they lead:
- Site variants. The site with and without www, over http and https.
- The home page at other addresses.
/index.php,/index.html,/index.htmand the home page addresses of popular CMSs: OpenCart, 1C-Bitrix, Joomla, Drupal, Magento, PrestaShop, MODX, WordPress, Tilda, ASP.NET. - Trailing slash. For pages added to monitoring — the address with and without a slash.
Every extra address should lead to the main one with a permanent redirect. Severity levels:
- Critical (by default) — another address opens the same page without a redirect (even if the page has a canonical tag), leads somewhere else, or a redirect that used to work has disappeared.
- Warning — a temporary redirect or a chain of several redirects.
- What to do. Under each problem it says what to fix, for example “A permanent (301) redirect to the home page is needed”.
- How you’ll know. After each check, you get an email report. Telegram notifies you when a problem appears and when it’s fixed. If a redirect existed and disappeared — for example, after a move — the message says so.
A permanent (301) redirect to the home page is needed.
Better to redirect permanently straight to https://example.com/.
Which address the page itself considers the main one is shown by the page SEO tags check, and whether different pages share titles and descriptions — by the duplicate title, description and H1 check.
FAQ
Doesn’t a canonical tag solve the duplicate problem?
Only partly. A canonical tag is a hint for Google, not a rule: the search engine may choose a different address. Besides, only search engines see it, while visitors, ads and analytics keep working with the duplicate. A permanent redirect removes the extra address for everyone.
Which version should be the main one: with or without www?
Either — what matters is that there’s one main version and all others lead to it with a permanent redirect. For the protocol, choose https: Google prefers HTTPS pages over equivalent HTTP pages when it picks the canonical.
Why is a temporary redirect only a warning?
The visitor still lands on the right address, so the site works. But a temporary redirect tells the search engine the move is only for a while, and the old address may stay in search results. Duplicates need a permanent redirect — 301 or 308.
What’s wrong with a redirect chain?
Each redirect is a separate request to the server and an extra delay for visitors and the search crawler. A chain usually appears when rules were added at different times: first from www to non-www, then from http to https. It’s better to lead straight to the final address with a single rule.
Do I need to set up a redirect for each page separately?
No. Site variants, https and the trailing slash are set up with a single rule on the server, in the CDN or in the CMS settings — and it applies to all pages. FullCheckApp checks the slash on the pages added to monitoring as samples: if there’s a duplicate there, it’s most likely across the whole site.
Sources
- Google Search Central — What is URL Canonicalizationdevelopers.google.com/search/docs/crawling-indexing/canonicalization
- Google Search Central — How to specify a canonical with rel="canonical" and other methodsdevelopers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls
- Google Search Central — Redirects and Google Searchdevelopers.google.com/search/docs/crawling-indexing/301-redirects
- Google Search Central — URL structure best practices for Google Searchdevelopers.google.com/search/docs/crawling-indexing/url-structure
Check your website
Add your website address — the first check runs right away, and you’ll see the status of every item in this article.
Check for free