Duplication of content is one of the most penalizing principles to position itself on search engines like Google. We speak of duplication of content when the contents are identical or identical.
This problem can also come from a site that does not correctly handle uppercase letters in the URLs. Example:
https://www.mysite.fr/directory1/my-page.html
https://www.mysite.fr/Directory1/My-page.html
In theory, a URL must not contain capital letters. To solve this problem, we must implement a rewriting rule to implement 301 redirects from URLs containing uppercases to a version of a URL containing lowercases.
Example via a .htaccess that allows a file tiny.php
RewriteEngine onRewriteRule ^ [A-Z] +. * \. Html $ lowercase.php [L]File lowercase.php:
<? php// get the url then convert it to lowercase$ uri = $ _SERVER ['REQUEST_URI'];$ uri_lc = strtolower ($ uri);// the page is redirected using 301 redirectheader ("Location: http: //". $ _ SERVER ['HTTP_HOST']. $ uri_lc, TRUE, 301);?>