How to redirect blogspot.in,fr,mx,co.uk,ca to blogspot.com


Redirect Blogspot.in,fr,mx,co,uk,ca to blogspot.com
Blogger redirects your site to specific country.

in order to prevent its redirection from specific country to only one domain. you need to add the following code to your site.

Here is the blogger redirection code:
add the following code in the <head> section of your blog site :

go to template> edit HTML> find <head> and paste the code below:

<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>
 
please subscribe in the left to receive more updates and articles 
Rathnavath Ravinaik

No comments:

Post a Comment

About

authorHello, my name is Ravi R Naik. I'm a 20 year old self-learned blogger and writer.
Learn More →