Fixed : 301 Redirect Blogger Blog From HTTP to HTTPS
Series Posts >>
What is 301 Redirection?
301: Permanent Redirect
302: Temporary Redirect
Now, if you want to redirect your old blog to newer blog, you should use 301 Permanent Redirect because it will send all (almost) link juice from old URL to new URL. So, it means that you will not lose your ranking in search engines.
And, if you are not redirecting a URL to another URL permanently, saying, you will start working soon on the URL that you are redirecting, then you may use 302 method but it doesn’t pass any link juice from the redirector URL to the URL in which it is getting redirected.
After all, Blogger doesn’t redirect http://abc.blogspot.com to https://abc.blogspot.com using 301 method; it will help you lose your page ranking. And, it doesn’t even redirect from http://abc.blogspot.com to https://abc.blogspot.com using any method. – FIXED BY MY BLOGGER GUIDES Below is the problem which we are going to fix.
- Redirect your blog from HTTP to HTTPS;
- Prevent both, HTTP and HTTPS URL from being indexed;
- Make your blog safe from Panda penalty;
- A slight increase in traffic from Google [Not Myth].
301 Redirect Blogger Blog From HTTP to HTTPS
- Go To Blogger >> Template >> Edit HTML.
- Search for <head> tag by pressing ctrl+f.
- Now paste below code below of this tag.
<link href=’https://your-blog.blogspot.com’ 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 = window.location.search;
if (!window.location.origin.match(secssl)) {
window.location = “https://” + blog + slug + subs;
}
}
check_secure();
</script>
Note :- The bolded code above will make your blog safe from being penalized by Google according to its algorithm, Panda. The URL in the bolded code will help Google understand that what is the main URL of your blog and where to pass the link juice.
- Change the orange color highlighted words with your blog’s URL. (Important: Don’t change HTTPS:// before the URL)
- Now, 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’/>
Conclusion:
Contents
