Monday 30 July 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 :)


0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Jhon bro 10 out of 10, based on 24 ratings. 5 user reviews.
Design by SEO India | Bloggerized by SEO Freelancer - SEO News | Learn SEO Tips