{"id":2959,"date":"2015-10-23T07:43:00","date_gmt":"2015-10-23T07:43:00","guid":{"rendered":"https:\/\/wiki.melberi.com\/uncategorized\/redirect-blogger-http-to-https-permanently-using-javascript-ssl-canonical-url"},"modified":"2017-10-24T09:16:46","modified_gmt":"2017-10-24T09:16:46","slug":"redirect-blogger-http-to-https","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/wiki\/blogger\/redirect-blogger-http-to-https","title":{"rendered":"Redirect Blogger HTTP to HTTPS Permanently Using Javascript SSL- canonical URL"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div dir=\"ltr\" style=\"text-align: left;\">\n<h2 style=\"text-align: left;\"><u>How to Redirect Blogger Blogspot from HTTP to HTTPS Permanently Using Javascript\u00a0&#8211; canonical URL<\/u><\/h2>\n<p>Once you have\u00a0<a href=\"http:\/\/www.melberi.com\/wiki\/2015\/10\/how-to-enable-ssl-https-on-your-blogger.html\">enabled SSL\/HTTPS on your Blogger blogspot<\/a>, the default blog URL will be pointed to http address only.<br \/>\nUsing the below script, you can permanently redirect the default blog to https address.<\/p>\n<p>1. <b>Login <\/b>to your<b> Blogger Dashboard<\/b><br \/>\n2. Go to the Particular Blog which you want to redirect form http:\/\/ to https:\/\/<br \/>\n3. Edit the <b>Template <\/b>and paste the below script just below the <b>head\u00a0<\/b>as shown in the picture<\/p>\n<p><textarea style=\"background: #eee; height: 12.6em; width: 100%;\" title=\"Click to highlight\" readonly=\"readonly\" rows=\"10\"><\/textarea><\/p>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" href=\"http:\/\/4.bp.blogspot.com\/-4KTuQq4KSkw\/Vinh25iwQ-I\/AAAAAAAABtQ\/kYBIdD2q6JU\/s1600\/redirect%2Bblogger%2Bfrom%2Bhttp%2Bto%2Bhttps%2Busing%2Bjavascript.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"Redirect Blogger HTTP to HTTPS Using Javascript\" src=\"http:\/\/4.bp.blogspot.com\/-4KTuQq4KSkw\/Vinh25iwQ-I\/AAAAAAAABtQ\/kYBIdD2q6JU\/s640\/redirect%2Bblogger%2Bfrom%2Bhttp%2Bto%2Bhttps%2Busing%2Bjavascript.jpg\" alt=\"Redirect Blogger HTTP to HTTPS Using Javascript\" width=\"640\" height=\"260\" border=\"5\" \/><\/a><\/div>\n<p>4. To Tell Search Engines to HTTPS url as prefered domain (canonical), just add the below line in the header<\/p>\n<p><textarea style=\"background: #eee; height: 5em; width: 100%;\" title=\"Click to highlight\" readonly=\"readonly\" rows=\"5\"><\/textarea><\/p>\n<p>5. Save the <b>template<\/b><\/p>\n<p>Sample URL : <a href=\"http:\/\/mobilenx.blogspot.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">http:\/\/mobilenx.blogspot.com<\/a><\/p>\n<p>6. If your Mobile https site was displayed in the search, then you can disallow mobile content in the robots.txt<br \/>\nTo do that go to <b>settings -&gt; Search Preference -&gt; custom robots.txt <\/b>and add the following content<br \/>\n<b><br \/>\n<\/b><br \/>\nUser-agent: Mediapartners-Google<br \/>\nDisallow:<\/p>\n<p>User-agent: *<br \/>\nDisallow: \/search<br \/>\n<b>Disallow: \/*?m<\/b><\/div>\n<p>Allow: \/<\/p>\n<p>Sitemap: https:\/\/yoursite.blogspot.com\/sitemap.xml<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to Redirect Blogger Blogspot from HTTP to HTTPS Permanently Using Javascript\u00a0&#8211; canonical URL Once you have\u00a0enabled SSL\/HTTPS on your Blogger blogspot, the default blog URL will be pointed to&#8230; <a href=\"https:\/\/www.melberi.com\/wiki\/blogger\/redirect-blogger-http-to-https\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1210],"tags":[1601],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/posts\/2959"}],"collection":[{"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/comments?post=2959"}],"version-history":[{"count":2,"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/posts\/2959\/revisions"}],"predecessor-version":[{"id":4163,"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/posts\/2959\/revisions\/4163"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/media?parent=2959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/categories?post=2959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/tags?post=2959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}