Monday, July 30, 2012

Blogger Blogs Redirection As You Wish

Blogger Blogs Redirection As You Wish

Now if you feel the blogger redirection is bad or not ok , then you can redirect as you wish .

Here I will be Showing how to do it . Suppose you say that you dont want to redirect i.e www.abc.blogspot.com to be static then follow this steps

Step 1: Go to ---> Templete of your blog
Step 2 :Edit Html
Step 3: Ctrl+ f to find this <b:include data='blog' name='all-head-content'/>
Step 4:After finding the above line paste the below code


<script type="text/javascript">
var str= window.location.href.toString();
if ((str.indexOf('.com/'))=='-1') {
var str1=str.substring(str.lastIndexOf(".blogspot."));
if (str1.indexOf('/')=='-1') {
var str2=str1;
}
else {
var str2=str1.substring(0,str1.indexOf('/')+1);
}
window.location.href =window.location.href.toString().replace(str2,'.blogspot.com/ncr/');
}
</script>


below the line found in step 3

That all your are done :) Now where ever your blog is it will be in .com Extention 



Now you say that you want blog to be in local specific as static i.e say if your living in Canada and your extension is  www.abc.blogspot.ca

then replace this code in step 4:


 <script type="text/javascript">
var str= window.location.href.toString();
if ((str.indexOf('.ca/'))=='-1') {
var str1=str.substring(str.lastIndexOf(".blogspot."));
if (str1.indexOf('/')=='-1') {
var str2=str1;
}
else {
var str2=str1.substring(0,str1.indexOf('/')+1);
}
window.location.href =window.location.href.toString().replace(str2,'.blogspot.ca/ncr/');
}
</script>


it the same code the only thing you need to do is change  .com to ca extension which is marked in red . or say if you want .ie (Ireland)  as static then replace .com to .ie .Happy Blogging :)


Sunday, July 22, 2012

Blogspot Extension

Blogspot Extension




Google recently made localization of the blogspot/blogger url i.e URL automatically get redirected to the corresponding extension of the country . For example my blog http://tipsonfreetraffic.blogspot.com changes to http://tipsonfreetraffic.blogspot.in/ when iam in India

When I analysed  ranking of the site is not affected infact it gives more weight age to site. So if your are worried about this be cool . If you see the scource code of your blog you can see <link href="http://tipsonfreetraffic.blogspot.com/" rel="canonical"></link> so duplication is avoided. So Hat off to blogspot for this wonderful update :)








Some of the extension which I found are listed below


Indian : blogspot.in/
for UK:blogspot.co.uk
for Canada : blogspot.ca
for Australia : blogspot.au.com 
for Inreland : blogspot.ie
for Germany : blogspot.de


So no worries and happy bloging