How To Redirect Your Blog From HTTP To HTTPS? - Techsvilla

Saturday, 15 July 2017

How To Redirect Your Blog From HTTP To HTTPS?

How To Redirect Your Blog From HTTP To HTTPS?

We will do this using an easy-to-understand chunk of JavaScript. This piece of JavaScript can quickly redirect your blogger blog if it is being browsed using blog's HTTP URL.
Image result for HTTPS

Note: - Doing the steps mentioned below, you are also preventing your blog from being penalized by Google Panda penalty.

  1. Visit Blogger > Template > Edit HTML
  2. Use Ctrl F, search for "<head>" in your template.
  3. Paste the following chunk of code below it, :
  4. <link href='https://YOUR BLOG ADDRESS HERE' rel='canonical'/><script type='text/javascript'>
    function check_secure() {
    var secssl = /^https/i;
    var blog = document.location.hostname;
    var slug = document.location.pathname;
    var subs =;
    if (!window.location.origin.match(secssl)) {
    window.location = "https://" + blog + slug + subs;
    Note :- The bolded code will make your blog free from being sactioned by Google according to its algorithm, Panda. The URL in the bolded code will aid Google see to it that what is the main URL of your blog and where to pass the link juice.
  5. Change the highlighted words with your blog's URL. (Don't change HTTPS:// before the URL)
  6. Save your template and you are done!
Important: - Find this code that is given below and make sure that the code I have given above is placed above the following code:
<b:include data='blog' name='all-head-content'/>
Please Let us Know the out come drop your comments...Here!!! 
NOTICE:- Advertise your products and services here, promote your song, invite people to your blog at an affordable rate...CLICK HERE TO START