+321 123 4567
info@test.com
  • Home
  • My Services
    • Web Design
    • Web Development
    • Technical Writing
    • Portfolio
  • My Thoughts
  • Free Tools
    • Photo Editor
    • Avatar Generator
    • Email Migration Tool
    • QR Code Generator
    • RSS to HTML Converter
    • IP Address Geolocation
    • Base64 Image Encoder
    • NATO Translator
    • All Tools
  • Contact
Home
Blogger
How To Redirect A Blog To Another Blog or Address

How To Redirect A Blog To Another Blog or Address

Wale Adekile
April 12, 2011

I had to make this post because I realized what would have happened if there was absolutely no way to redirect a blog to another. I initially intended to make http://fbt.doncaprio.com a different blog under a sub domain but changed my mind due to certain reasons. I was quite worried about all the traffic I was going to lose and decided to go online just to make a little research. I came up with a little trick which I’m gonna share here, who knows, someone else might just need it down the line.


To redirect one blogspot blog to another needs no techie stuff, simply copy and pasted the code below in the HEAD section of your template by folowing these steps:

* Login to your blogger account and click on Design > Edit HTML

* Now Press CTRL = F and serch for </head>

* Paste the following code just above this

 


<meta HTTP-EQUIV='REFRESH' content='0; url=http://my-new-blog-adress'/>
<meta content='NOINDEX, NOFOLLOW' name='ROBOTS'/>

Please change my-new-blog-adress to your own new address.

Explanatory Note

content=’0 as shown in the code determines how long (in seconds) your visitors will stay on the old blog before being redirected. I set it to Zero but you might change it depending on your choice.

Also <meta content=’NOINDEX, NOFOLLOW’ name=’ROBOTS’/> tells search engines to stop indexing posts on your old blog. This prevents your new blog from being penalized by google for duplicate content as pages indexed on the old blog will be removed in due time.

Update – Redirecting Individual Blog Posts


Now we must redirect individual posts to the new blog but it’s impossible to add a 301 permanent redirect on Blogger server. However, we can achieve this using a trick. Search for this code:

<b:section class='main' id='main' showaddelement='no'>

Right below that, paste this:

<b:widget id='Redirector' locked='true' title='Blog Posts' type='Blog'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "item"'>
<b:loop values='data:posts' var='post'>
<script type='text/javascript'>
var new_page='yournewblog.com/';
var permalink = '<data:post.url/>';
var timestamp = '<data:post.timestamp/>';
timestamp = timestamp.split('/');
timestamp = timestamp[2]+'/'+timestamp[0]+'/'+timestamp[1];
new_page = permalink.replace(/youroldblog.blogspot.com/2007/[0-9]{2}/,new_page+timestamp);
new_page = new_page.replace(/.html$/,'');
document.location.href = new_page;
</script></b:loop>
</b:if>
</b:includable>
</b:widget>

You must replace yournewblog.com and youroldblog in the code with the code with address of your new blog and old blogspot subdomain respectively. Hope it works for you!


Previous Post
Read Nokia Security Code Through USB
Next Post
How To Get A Facebook Email Address
Wale Adekile
Husband to the world's most beautiful woman and father to two awesome kids. A nerd, obviously; also, a technical business analyst, a web designer who preaches the gospel of WordPress, and a writer. You can check out my published books on Amazon.
breadcrumb navigation for blogspot
BloggerWordpress

Displaying Breadcrumb in Google Search Result for Blogger & WordPress

14 years ago
Blogger

How To Open Links In New Tabs (Blogger/Blogspot)

14 years ago

Recent Articles

yunmai massage gun mini 2.
Yunmai Massage Gun Mini 2 Review
BenQ LaptopBar Review: The Accessory I didn’t Know I Needed
teendow g20
Teendow Robot Vacuum G20 Review
Yunmai EasePro Massage Gun Review
bathroom
Dear Men, Spraying All Over the Toilet Seat is Disgusting and Irresponsible
winx mediatrans
How to Transfer Photos from iPhone to Computer Without iTunes
How to Use WhatsApp on an iPad
Things to Consider When Buying a MacBook
programmer
Learning to Code: A Comprehensive Guide for Beginners
identity thief
How to Efficiently Prevent Identity Theft

All contents on this blog are copyright protected and cannot be reproduced on other websites without permission.

Copyright © 2022 – NerdieDad | Home | Contact | About | Privacy Policy