duplicate content on site
I did a site test on nibbler and got this message. I do not see two seperate sites. I only have one site and uses HTTP's. Any idea what is happening?
- There is duplicate content on http://www.clearsoundhearing.ca and http://clearsoundhearing.ca. This is bad, as technically they are classed as two different websites. Search engines may lower a website's rank if they find the same content on two different URLs. Close recommendations
- Choose one domain that you would like to use and then set a permanent (HTTP 301) redirect to forward users who visit the other.
Re: duplicate content on site
I made a .htaccess file and added the following, hope it is ok, cause I am not a coder
ErrorDocument 404 /404-error.htm
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?clearsoundhearing\.ca
RewriteRule ^(.*)$ https://www.clearsoundhearing.ca/$1 [R,L]
Re: duplicate content on site
That looks like you have got it spot on. The .htaccess code directs any traffic aimed at the http:// site to the https:// site.
I just tried to go to the http:// one, and I was seamlessly sent to the https://
Re: duplicate content on site
Perfect Chris. I appreciate it.
Re: duplicate content on site
It also helps if you insert this in the head section of your site:
For further explanation:
LINK
Re: duplicate content on site
Quote:
Originally Posted by
Egg Bramhill
It also helps if you insert this in the head section of your site:
For further explanation:
LINK
For references, since Aug 2021 and Plus version 21.5:
Quote:
A <link rel=canonical> is now automatically applied to the <head> of your web page when you publish to Xara Hosting / MAGIX Online World. If you are publishing to Other Web Host, enter the URL you want set as canonical in the Website URL field.
So Plus users need not apply.
Acorn
Re: duplicate content on site
Re: duplicate content on site