How to Disable Blogger URL Redirection?

How to Disable Blogger URL Redirection?





How to Disable Blogger URL Redirection?


Blogger is a blog-publishing service that allows multi-user blogs with time-stamped entries. It was developed by Pyra Labs, which was bought by Google in 2003. Generally, the blogs are hosted by Google at a subdomain of blogspot.com. A user can have up to 100 blogs per account.



As the Google have started redirecting the blogger blogs to country specific domain, many of blogger users are facing problems due to negative affect on Google juice (Bookmarked links, external links of your blogs) and social stats (like tweet counts, Facebook shares and Google +1’s).


The country specific re-direction allows google to have more control on blogs management in different countries.


Available Solutions:



  • Use Custom Domains: The users who are using custom domain will not be affected, since their url structure will remain the same and it will not be redirected ( Refer this).

  • Adding ‘ncr’ slug to blog url:Adding a ‘ncr’ slug to your blog url stops the redirection and it shows the actual domain address.


For example openinghttp://abc.blogspot.com in India will openhttp://abc.blogspot.in,


However, if you openhttp://abc.blogspot.com/ncr in any country it will simply open the same url i.e. http://abc.blogspot.com


How to add ‘ncr’ slug to your blog url?


I recently found a code snippet to add ncr slug to your blogger url. Follow the below steps:


#1: Open Blogger dashboard and select template



#2: Click on ‘Edit Html’ and then ‘Proceed’


#3: Add following code:


<script type="text/javascript">
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf("."));
if (ctld != ".com") {
var ncr = "http://" + blog.substr(0, blog.indexOf("."));
ncr += ".blogspot.com/ncr" + slug;
window.location.replace(ncr);
}
</script>


#4: Click on Save Template and its done.



Source: RTCamp


Thank you for patronizing Design Devta. I am sure your visit to us must be quite satisfying and in line with your expectations from us. Just in case, it's not as you expected from us or if you are facing any problem, kindly forward your feedback's directly to us by leave a Comment below or using our Contact form. And, get assured response from my side. Your feedback's and suggestions are extremely valuable to us. This Post is written by Harman Singh Hira. There is no any source so Copying or using this post for your own site is not allowed. If anyone do so get ready for facing DMCA. Please, if you like this post then share on your social networking sites. Assuring you of our best service always.


0/Post a Comment/Comments

Previous Post Next Post

Sidebar Ads

Ads1
Ads2