How to automatically redirect Blogger blog to another blog or website

How to automatically redirect Blogger blog to another blog or website


  1. Login to your Blogger dashboard
  2. Go to template and click edit HTML
  3. Now you can see template codes. Press CTRL + f and then find <head>
  4. Now add the following code below head tag like you see in the image below.
<script type='text/javascript'>  var d='<data:blog.url/>';  d=d.replace(/.*\/\/[^\/]*/, '');  location.href = 'http://tipricks.blogspot.com';</script>

In the above code change http://tipricks.blogspot.com which is the destination URL. Now all your pages from the blog will be redirected to destination URL.
Now we will see another piece of code that redirects particular blog URL to another blog or website. If you wish not 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 for promotional purpose.
To do this just paste the following code below head tag and change the from URL that is http://yourblog.blogspot.com and destination URL that is http://tipricks.blogspot.com


<script>
if(window.location.href == 'http://yourblog.blogspot.com '){window.location="http://tipricks.blogspot.com";}</script> 

The above code just redirects user from the specified BlogSpot URL to another website or URL.
Here comes another code; with this you can redirect all your blog pages including home page to another blog 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://tipricks.blogspot.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://tipricks.blogspot.com in 5 seconds after landing. 

Posted by Edit Post

Free responsive blogger templates
Random PostsTemplateTell

    0 comments:

    Dear Reader! We’re enthusiastic to see your comment but after reading the Content please ask for advice and to provide constructive feedback Please Write Relevant Comment with Polite Language.Your comments inspired me to continue blogging. Your opinion much more valuable to me. Let’s enjoy a personal and evocative conversation. Thank You!