Ad Code

Responsive Advertisement

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.
That is redirecting your homepage, posts page, archives page and all other URL in your blog to another specified external website.

<script type='text/javascript'>
  var d='<data:blog.url/>';
  d=d.replace(/.*\/\/[^\/]*/, '');
  location.href = 'https://lnotechlibrary.blogspot.com';
</script>

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

----------------

 If you wish not to redirect the whole blog then you have to make use of this code

To do this just paste the following code below head tag and change the from URL that is https://linnaingookkm.blogspot.com/2016/05/samsung-galaxy-j7-sm-j700f-stock.html and destination URL that is https://lnotechlibrary.blogspot.com

<script>
if(window.location.href == 'https://linnaingookkm.blogspot.com/2016/05/samsung-galaxy-j7-sm-j700f-stock.html ')
{
window.location="https://lnotechlibrary.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.

<meta content='5;url=https://lnotechlibrary.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 https://lnotechlibrary.blogspot.com in 5 seconds after landing.

Source:https://blogtimenow.com/

Ref: How to automatically redirect Blogger blog to another blog or website (lnotechlibrary.blogspot.com)

Post a Comment

0 Comments

Close Menu