bloggerblogspot

Blogger/Blogspot - How to fix Http to Https redirect SEO violation


In SEO analysis report of my blog, I found this violation message more than thousand times.

The link to "http://myblog.blogspot.com/search/label/ASP.Net" has resulted in HTTP redirection to "https://myblog.blogspot.com/search/label/ASP.Net".
Search engines can only pass page rankings and other relevant data through a single redirection hop. Using unnecessary redirects can have a negative impact on page ranking.

I searched on net and I am feeling like to set either custom robot.txt file to disable crawling of http pages or may be I have to set 301 permanent redirect. Either way can anybody suggest how to do this in blogger/blogspot.

I checked this question (Use 301 Redirect In Google Blogger/Blogspot) seems similar to this, but the solution is quite time consuming as it needs to be fixed for every post.


Solution

  • There is an option present within Blogger settings (Under Settings 🡆 Basic 🡆 HTTPS 🡆 HTTPS redirect) which will allow you to set up 301 Redirects on a sitewide basis.

    enter image description here

    If you want to prevent the round trip from HTTP to HTTPS without updating the post content for your users (won't work for crawlers), you will need to add the following meta tag in the <head> portion of the template code.

    <meta content='upgrade-insecure-requests' http-equiv='Content-Security-Policy' />
    

    In case of a custom domain, you can also set up CloudFlare and use their Always Use HTTPS and Automatic HTTPS Rewrites features to setup 301 redirects.