Sep 26, 2012

How to Stop Blogger to Redirecting to Country Specific URL

Here is the simple Easy way to Stop Blogger to Redirecting to Country Specific Stop your blog   automatically redirect with Country Specific URL simpley find <head> and paste the below code just after <head>
<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 += "" + slug;

and now save your template all done. :)

Subscribe Updates, Its FREE!


Post a Comment


Copyright @ 2013 EgyTricks.

Designed by Vikash | EgyTricks