Blogger Tutorial

How to Automatically Redirect from


There are many reasons that you may want to automatically transfer visitors from another URL or from one blog to another. For example if you have more blogs and just want to focus only one. So this content will guide you to the easy way to redirect from all your blogs to one blog that you focus.


1- Login to your Blogger account
2- Go to Template and click Edit HTML
3- Press CTRL + F and then find
<head>
Automatically redirect from whole website or blog to another website or blog

3-A- Copy and paste below code just above or before <head> tag
<script type='text/javascript'>
var d='<data:blog.url/>';
d=d.replace(/.*\/\/[^\/]*/, '');
location.href = 'http://www.sharetoworld.com';
</script>
<meta content='5;url=http://www.sharetoworld.com' http-equiv='refresh'/>
Automatically redirect from specific content of website or blog to another website or blog

3-B- Copy and paste below code just above or before <head> tag
<script>
if(window.location.href == 'http://yourblogname.blogspot.com/----')
{
window.location='http://www.sharetoworld.com';
}
</script>
<meta content='5;url=http://www.sharetoworld.com' http-equiv='refresh'/>
Note: 
- The pink color : The original URL
- The blue color : The destination URL
- The green color : The time (Here is 5 seconds)

4- Press Save template       

Done !

0 comments:

Post a Comment

Powered by Blogger.