How to Redirect Old Blogger Blog to new Domain URL

In the previous article, we had discussed about How to redirect individual posts from blogger blog to another blog. That was an amazing post and many people found that useful. However, people have asked about redirection of complete Blogger blog to another URL or a website. Today, in this article, we will try to learn How to redirect a blogger blog to a new URL or a website.

how to redirect blogger blog to new domain


With the help of this script, you can redirect all your posts, pages, homepage and other archive pages to a new Blog or URL. This is particularly helpful for those who have recently bought a new domain and now wish the old blog's traffic to be redirected to the new domain name. 

So let's start. I am considering that you have already did a backup of your blogger template. If not, first take back up of your blog.

Steps to Redirect Blogger blog to a new domain:


Step 1: First, you need to login to your Blogger dashboard 
Step 2: Now on the left side panel, click on Themes > click edit HTML

theme editor blogger

Step 3: You have to search for <head> tag. You can do it by pressing Ctrl + F.
Step 4: Once you found <head> tag. Just below it. Please paste the given piece of code below.

<script type='text/javascript'>
var d='<data:blog.url/>';
d=d.replace(/.*\/\/[^\/]*/, '');
location.href = 'https://yournewblogname.com';
</script>
That's it. You need to change the above URL in the code to the domain where you wish to redirect the blog. Now preview your previous blog. You will be redirected to your domain name. 


If you wish a little delay while redirecting the blog to the new domain, here is another code through which you can make use of delay while redirecting one blog to another URL.  In this piece of code, you will find delay time which you can adjust according to you need.

Code for Redirecting Blogger blog to new domain with delay:

<meta content='5;url=https://yournewblogname.com' http-equiv='refresh'/>

You need to change the above URL in the code to the domain where you wish to redirect the blog. As you can see in the above code, I have set the delay of 5 seconds, however if you want you can increase or decrease this number to your choice. 

I hope this article might be of great help for the people who were looking How to redirect a Blogger Blog to a new domain or URL. If it really helped you, kindly share it with your friends. 

Comments