How to resolve http vs https duplicate content issues

by Rajesh Jhamb 3 replies
Hi Folks,

I have recently come across a new issue on our site, where http & https URL's are showing in search engines.

We aren't in a position to roll out https everywhere, so what would be the best thing to do next?

how can I address duplicate content issue? I thought about implementing canonicals?

But for this which version should I choose? http or https?

Also, in Google Analytics, prefered version is http? Will it track whole traffic comes from http and https or it will track only http traffic?

please help. what should i do?
#search engine optimization #content #duplicate #http #https #issues #resolve
Avatar of Unregistered
  • Profile picture of the author PromoA
    For Google there is no difference for http or https. You should do redirect from http to https and keep https only.
    After some time, when indexing will be done, in search you should see https links only. Google Analytics will be updated with new data too.
  • Profile picture of the author MrJack Mcfreder
    Hello,

    Before I answer your question, please allow me to throw at you a couple of things about http vs https:

    -HTTPS ranks better than HTTP in search engines mobile/desktop.
    -HTTPS gets less value from monetization compared to HTTP.

    Now coming to your question:

    1- Move from HTTP to HTTPS

    I would highly recommend completely switching to HTTPS if your company website does not monetize or make much money from AdSense. And to achieve that there is always 3 steps to move your website from HTTP to HTTPS.

    Step 1: Redirect seo 301 http to https by editing your .htaccess file as follow:

    RewriteCond %{HTTPS} off
    # First rewrite to HTTPS:
    # Don't put www. here. If it is already there it will be included, if not
    # the subsequent rule will catch it.
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    # Now, rewrite any request to the wrong domain to use www.
    # [NC] is a case-insensitive match
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    Step 2: Make sure that your website and web pages source code contains a canonical tag is pointing to https NOT http example of a homepage:
    <link rel="canonical" href="https://yourwebsite.com/" />
    Step 3: Login to your webmaster tools and add a new website but make sure to use https://youwebsite.com. After you have done that, in the same webmaster tools console find your old website as HTTP http://yourwebsite.com and then use the change address tool to move http address to https: https://support.google.com/webmaster...er/83106?hl=en
    (it takes a maximum of 180 days for your website to completely transfer link juice from http to https and essentially crawled properly.

    Done.

    2- Move from HTTPS to HTTP

    On the other hand, if your website is monetizing ads from Adsense. Then you should stick with HTTP until HTTPS is fully supported and optimized by Adsense. To accomplish this task you have only two steps:

    Step 1: redirect seo 301 https to http by using the following code:

    RewriteEngine On
    RewriteCond %{SERVER_PORT} 443
    RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    Step 2: Make sure your canonical tag is pointing to HTTP. Example of a homepage:
    <link rel="canonical" href="http://yourwebsite.com/" />
    3- Keep both HTTP and HTTPS

    There are many websites using both protocol versions. But the canonical tag should point to your preferred protocol. And another common issue with some users is that they use links like this <a href="/contact.php"> instead of the proper way which is <a href="http://yourwebsite.com/contact.php"> so make sure your links and images or other media files are linked using your preferred protocol. Applying these changes should prevent search engines from crawling unwanted protocol and hence duplicated content.

    That's pretty much it!
    • Profile picture of the author Rajesh Jhamb
      Thank you so much for detailed reply.

      Suppose I want to keep https protocol and there are thousands of backlinks pointing to http protocol, then how can I pass the link juice from http to https protocol.
      Signature

Trending Topics