Tips to STOP Crawling of HTTPS (Secure) Version of eCommerce website

Tips to prevent search engine crawling for HTTPS (Secure) version of the eCommerce Website.

If the Search engine like Google, Bing, Yahoo! …etc. having two version of the website one is SSL (https://) and second is NON-SSL (http://):

http://www.example.com/
https://www.example.com/

As per last Google panda update if your website will get cached in Google with both http and https, then your website will be penalized and will effect badly in ranking (major rank dropped).

Solution 1:

Use Rel=”Canonical” Meta Tag:

Add a rel="canonical" link to the <head> section of the non-canonical version of each HTML page.

A canonical page is the preferred version of a set of pages with highly similar content.

i.e.

Your homepage (https://www.example.com/) <HEAD> section has:

<link rel=”canonical” href=”http://www.example.com/”>

Your internal page (https://www.example.com/product.php) <HEAD> section has:

<link rel=”canonical” href=”http://www.example.com/product.php”>

Read more about Canonical Meta Tag – http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=139394


Solution 2: (We are highly recommended this solution)

Use two different robots.txt file for http and https version of the website.

Step 1:

Please create two robots.txt file with specific directives.

  • robots.txt

User-agent: *
Allow: /

  • robots_https.txt

User-agent: *
Disallow: /

 

Step 2:

Please open .htaccess file

Please put below same code in the .htaccess file.

RewriteEngine on
Options +FollowSymlinks
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^robots.txt$ robots_https.txt

 

Suppose, if you are NOT able to use mod_rewrite directives

Then,

Please put below code in <head> section of the entire website which will be recognized as a meta tag if your HTTPS server variable is set and its value is ON.

 

<?php

if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {

echo '<meta content="noindex,follow">'. "n";

}

?>

 

If you face any problem to set up this task then feel free to contact us or make comment here. We will definitely help you to short out the things.

Please check out our eCommerce SEO services which helps to build online visibility and increase online sales.

Download Premium WordPress Themes Free
Free Download WordPress Themes
Download Best WordPress Themes Free Download
Download WordPress Themes
free download udemy paid course
download lava firmware
Download Best WordPress Themes Free Download
free download udemy paid course
About Darshit Parmar

Darshit Parmar is expertise with Project Management and SEO Analyst, and shares his 10 years of experience with Ecommerce Business Owners in making their brands and business a place in their own field.

Read More

Leave a Reply

Your email address will not be published. Required fields are marked *

RECENT BLOG POSTS

EPICENTER OF KNOWLEDGE

Our diligent marketing analysts bring to you the latest news, big releases, and important announcements along with the future trends in the tech world. Get to know them all.

TOP