{"id":201,"date":"2016-12-20T15:07:04","date_gmt":"2016-12-20T15:07:04","guid":{"rendered":"https:\/\/puvox.software\/?p=201"},"modified":"2021-11-14T13:45:49","modified_gmt":"2021-11-14T13:45:49","slug":"migrate-blogspot-301-redirect-to-another-site-using-meta-tag","status":"publish","type":"post","link":"https:\/\/puvox.software\/blog\/migrate-blogspot-301-redirect-to-another-site-using-meta-tag\/","title":{"rendered":"Migrate\/Redirect Blogspot without loosing SEO Rank"},"content":{"rendered":"<div class=\"default-content-clss content_201 type_post \"><h1 style=\"text-align: center;\">Migrating 3rd-party hosted website<\/h1>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-571 size-medium\" src=\"https:\/\/puvox.software\/wp-content\/uploads\/2016\/12\/sample_3-300x126.jpg\" alt=\"blogger move domain\" width=\"300\" height=\"126\" srcset=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2016\/12\/sample_3-300x126.jpg 300w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2016\/12\/sample_3-400x168.jpg 400w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2016\/12\/sample_3-768x323.jpg 768w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2016\/12\/sample_3.jpg 881w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>When your website is hosted on 3rd party services (like <a href=\"https:\/\/blogspot.com\">Blogspot<\/a>\u00a0or etc) which doesnt support\u00a0<strong>Server-side(called 301) redirection<\/strong>\u00a0, then you are in a trouble a bit, because the best and the only correct way to migrate the website, without loosing the SEO rankings and score, is to migrate using 301 redirection, which can only be done from &#8220;Server-side&#8221; command. Unfortunately, such kind of 3rd-party blog hostings, doesnt give users an ability to use 301 redirect. So, you have to make a &#8220;trick&#8221; to do the job with your own ways (not perfect, but worth to do). You have 2 things to do:<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: center;\">Step 1: &#8220;CANONICAL&#8221; meta-tag to Migrate SEO score<\/h2>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1398 size-thumbnail\" src=\"https:\/\/puvox.software\/wp-content\/uploads\/2016\/12\/seo-score-150x150.png\" alt=\"seo score\" width=\"150\" height=\"150\" \/><\/p>\n<p>1) You can try to move your current SEO score towards new site, using\u00a0<strong>CANONICAL<\/strong> meta-tag. Typically, tag looks like this:<\/p>\n<pre><strong><span style=\"color: #808000;\"><code>&lt;link rel=\"canonical\" href=\"http:\/\/www.example.com\/another-page.html\" \/&gt;<\/code><\/span><\/strong><\/pre>\n<p>However, you need it to be variable, depending on the article url (to learn more about <a href=\"http:\/\/helplogger.blogspot.com\/2014\/03\/how-to-create-custom-color-and-font-variable-definitions-to-blogger.html\">front-end<\/a>\u00a0and <a href=\"https:\/\/support.google.com\/blogger\/answer\/47270?hl=en\">back-end<\/a> variables). Now, you have to pre-define whole block of variables (you have to spend some time for this) and put this block between\u00a0<code>&lt;head&gt;&lt;\/head&gt;<\/code>\u00a0tag of the website template (in blogspot, you should find &#8220;Template&gt;Edit HTML&#8221;)&#8230;<\/p>\n<pre><strong><span style=\"color: #808000;\">&lt;b:if cond='data:blog.url == \"http:\/\/xyz.blogspot.com\/page12.html\"'&gt;&lt;link rel=\"canonical\" href=\"http:\/\/example.com\/newurl1.html\" \/&gt;&lt;\/b:if&gt;<\/span><\/strong>\r\n<strong><span style=\"color: #808000;\">&lt;b:if cond='data:blog.url == \"http:\/\/xyz.blogspot.com\/page89.html\"'&gt;&lt;link rel=\"canonical\" href=\"http:\/\/example.com\/newurl2.html\" \/&gt;&lt;\/b:if&gt;\r\n...... and so on<\/span><\/strong><\/pre>\n<p>&#8230; \u00a0(p.s. same thing can be done using Javascript, but that wont be as good for search engine..)<\/p>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: center;\">Step 2: Redirect users to your new site<\/h2>\n<p>Now, you have to redirect people to your new website&#8230; In the above <strong>if\/else statments<\/strong>, after the <code>&lt;link rel....&gt;<\/code>\u00a0tag, you can add such tag:<\/p>\n<pre><strong><span style=\"color: #808000;\"><span class=\"s\">\r\n&lt;b:if cond='data:blog.url == \"http:\/\/xyz.blogspot.com\/page12.html\"'&gt;&lt;link rel=\"canonical\" href=\"http:\/\/example.com\/newurl1.html\" \/&gt;<span class=\"p\">&lt;<\/span><span class=\"nt\">meta<\/span> <span class=\"na\">http-equiv<\/span><span class=\"o\">=<\/span>\"refresh\" <span class=\"na\">content<\/span><span class=\"o\">=<\/span>\"1; url=http:\/\/example.com\/newurl1.html\"&gt;&lt;\/b:if&gt; \r\n&lt;b:if cond='data:blog.url == \"http:\/\/xyz.blogspot.com\/page89.html\"'&gt;&lt;link rel=\"canonical\" href=\"http:\/\/example.com\/newurl2.html\" \/&gt;<span class=\"p\">&lt;<\/span><span class=\"nt\">meta<\/span> <span class=\"na\">http-equiv<\/span><span class=\"o\">=<\/span>\"refresh\" <span class=\"na\">content<\/span><span class=\"o\">=<\/span>\"1; url=http:\/\/example.com\/newurl2.html\"&gt;&lt;\/b:if&gt;\r\n...... and so on<\/span><\/span><\/strong><\/pre>\n<p>that means (1) the users will be redirected in 1 seconds as soon as they open the old website.<\/p>\n<p><span class=\"s\">(<\/span>Again, you can use JavaScript redirection instead of adding the &#8220;meta redirection&#8221; command in above tags. However, i dont know which one is better and which one has a bad impact&#8230; I dont know, feel free to write in comments):<\/p>\n<pre>&lt;script&gt;\r\n\/\/&lt;![CDATA[\r\n var matches= \/(.*?)\\\/([0-9]{4})\\\/([0-9]{2})\\\/(.*?)\\.html\/.exec(location.href);\r\n if(matches[4]){Final_URL= 'https:\/\/puvox.software\/blog\/' + matches[4] +'\/'; document.write('&lt;link rel=\"canonical\" href=\"'+Final_URL+'\" \/&gt;'); window.setTimeout(function(){document.body.style.opacity=0; },500); window.setTimeout(function(){window.location.href=Final_URL;},1000); }\r\n\/\/]]&gt;\r\n&lt;\/script&gt;<\/pre>\n<p>&nbsp;<\/p>\n<h2>=== Conclusion ===<\/h2>\n<p>Unfortunately, I couldnt find easier way when I moved my site.You have to spend a little time to do everything correctly \u00a0( Who knows, maybe there will appear a better method???)<\/p>\n<p>&nbsp;<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<div class=\"default-content-clss excerpt_201 type_post \"><p>Migrating 3rd-party hosted website When your website is hosted on 3rd party services (like Blogspot\u00a0or etc) which doesnt support\u00a0Server-side(called 301) redirection\u00a0, then you are in a trouble a bit, because<a class=\"excerpt-read-more\" href=\"https:\/\/puvox.software\/blog\/migrate-blogspot-301-redirect-to-another-site-using-meta-tag\/\">(Continue Reading)<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":571,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[13],"tags":[],"class_list":["post-201","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website"],"_links":{"self":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":0,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media\/571"}],"wp:attachment":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}