About Me

header ads

How to redirect Blogger blog to another blog or website


http://4.bp.blogspot.com/-A4cmMFiC92o/UWgNkvKAnvI/AAAAAAAAAdE/xh0EcCCzpMM/s1600/Custom+Redirects+Of+Blogger.jpg





A few posts back I made an article about Blogger custom redirects in which you can redirect within your blogger blog. That means can redirect your specific post URLs to another post or page, all 301 or 302 redirection within your blogger blog. That is useful for redirecting 404 not found error pages and broken links. however with that feature you cannot redirect homepage or any your blog URLs to any particular URLs or Another website or blog. Here we will show you how to redirect Blogger blog to another blog or website or any URLs. So with this technique you can redirect your Blogger Homepage or any particular page to external websites or blog.

When to use this?

This one will be very useful if you are just or permanently migrated to new domain name with new blogging platform. You are always have limit in Blogger that’s why people moving to self-hosted wordpress blogs platform. Usually you won’t get much traffic as before to your new blog when you permanently shifted. Also your old blog will have some decent traffic flow from organic search results as well as from backlinks. So by using this method you can drive traffic from your old blog to your new blog and also it passes all the ranking factors and backlinks.

How to redirect Blogger blog to another blog, URL or  Website :

Here we will sharing three different script code that automatically redirect Blogger blog to another blog, website or URLs and each code does different tasks.

Let’s say, you want to redirect your complete Blogger blog to another blog, website, page or URLs. That is redirecting your homepage, posts, pages, archives page and all other URLs in your blog to another specified external URLs. You have to use this technique if you permanently moved to new domain name. To do this you need to make some changes to your template file. So before you mess up with the codes it’s recommended to backup your template first.

  1. Login to your Blogger dashboard
  2. Go to template and click edit HTML
  3. Now you can see template codes and scripts. Press CTRL + F and then find <head>
  4. Now add the following code below the head tag like you see in the image below.


                        

<script type='text/javascript'>
      var d=&#39;<data:blog.url/>&#39;;
      d=d.replace(/.*\/\/[^\/]*/, &#39;&#39;);
      location.href = &#39;http://www.apajrlab.com&#39;;
    </script>

Or

 <script type='text/javascript'>

  var d='<data:blog.url/>';

  d=d.replace(/.*\/\/[^\/]*/, '');

  location.href = 'http://apajrlab.com';

</script>
 

 In the above code change http://apajrlab.com which is the destination URL. Now all your pages from the blog will be redirected to destination URL.

Now we are going to see another piece of code that redirects particular blogger blog URLs to another blog, URLs or website. If you are not wish to redirect the whole blog then you have to make use of this code. Also you can use this for redirecting user from a particular page to another external website or URLs for promotional purpose.

To do this just paste the following code below the head tag and change the from URL that is http://yourblog.com and destination URL that is http://apajrlab.com 

<script>

if(window.location.href == 'http://yourblog.com ')

{

window.location="http://apajrlab.com";

}

</script>


The above code permanently redirects user from the specified BlogSpot URL to another website, blog or URL.

Here comes another code,  with this you can redirect all your blog pages including home page to another blog, URLs or website with specific set time. So users who lands in your blog will be automatically redirected to anther blog after a specific time period.

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


This is the code, just copy and paste below the head tag in your template file. In the above code 5 is the set time where users will redirected to http://apajrlab.com in 5 seconds after landing.

Hope this article guided you on how to permanently automatically redirect Blogger blog to another blog website or URL. Share this and if you found it useful then please leave your comments. To get more update from APAJR Lab subscribe to our RSS feeds




Post a Comment

6 Comments