Duplicate Meta Data from Http and Https
-
This post is deleted! -
When I try to go to the secure version https://www.moneyglare.com/, I am served the following warning message -
www.moneyglare.com uses an invalid security certificate.
The certificate is not trusted because it is self-signed.
The certificate is only valid for Parallels Panel(Error code: sec_error_untrusted_issuer)
I am not exactly sure what Parallels Panel is but if it's your webhost, you might want to try contacting them to see if they can fix this for you by 301 redirecting the https version of the site to the http version if you are not using SSL.
Another option is to set the canonical tags to the http versions so the https pages don't get indexed in the search engines. Here's a quick way to automatically do this with PHP -
$currenturl= $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
//Check if it is using the secure https port which is 443
if ($_SERVER["SERVER_PORT"] == "443") {//connected to secure port, formulate the http canonical version
$canonicalversion="http://".$currenturl;//echo the canonical version to the HTML as link rel canonical tag
echo '';
}?>
-
Sorry, but I am not sure where to put this code.
-
Now I have moved my hosting (because of lot of problems) but on new hosting https version is not working.
Google is indexing one of my blog http://www.codefear.com with https version too. My blog traffic is continuously dropping I think due to these duplicate content . One with http version and another with https version.
Please help me to overcome from this problem and after solving this duplicate issue, do I need Reconsideration request to Google.
Thank you