Powered by Blogger.

How to Redirect old Blog URLs to New URLs



Today I'm going to how to Redirect Blog Old URL to New Blog. This method is useful for those who have just moved domain or create a new blog and you want to redirect visitors from old blog that already have a source of traffic from organic search results. 

So how? Ok, here I give 3 different ways to redirect blog URL to other blogs. The first way is by applying the javascript code to your blog template, login to Blogger > Template > Open and click edit HTML > apply the below code just after the <head> tag.
<script type='text/javascript'>
  var d='<data:blog.url/>';
  d=d.replace(/.*\/\/[^\/]*/, '');
  location.href = 'http://smartpik.blogspot.com';
</script>
In the above javascript code is written link destination is http://smartpik.blogspot.com, please replace the destination link with your blog. 

The second method is also using the javascript code and the application does not differ from the codes of the way first. apply the below code just after the <head> tag.
<script>
if(window.location.href == 'http://yourblog.blogspot.com')
{
window.location="http://smartpik.blogspot.com";
}
</script>
Replace the first highlighted URL with your any URL(includes home, posts, and pages) And the second URL is the destination.

And for the third way to use the application of meta refresh tag in the blog template. apply the below code just after the <head> tag.
<meta content='5;url=http://smartpik.blogspot.com' http-equiv='refresh'/>
Content = 5 above the lag time required when a blog URL diverted to other blogs. Replace the time with your taste.

Thanks for reading! Stay tuned for more blogger tricks!

0 comments:

Post a Comment