Skip to main content

Posts

Showing posts from February, 2016

Country Specific Url te .com a redirect na di

/
/blogger te ad'n
Blogspot blog a na url/address gamtuam a om te hn veh le uh le .com redirect di na deih le a nuai a script na xml sung a <head> nuai chet a guang le chin
----------------------------------------------------------------------
<script type='text/javascript'>
// country specific url link te .com a redirect na script ahi
/* current blog url link a full a lak na varable */
var blog = document.location.href.toLowerCase();
/* Domain, .com a omsa ahih le redirct louh na di */
if (!blog.match(/\.blogspot\.com/)) {
/* Country TLD te redirect na di */
blog = blog.replace(/\.blogspot\..*?\//, &quot;.blogspot.com/ncr/&quot;);
/* tua tab pen a url thak pen .com a khek na */
window.location.replace(blog);
}
// blogspot adi chauh ahi
</script>
-------------------------------------------------------------------------
suppose na blog url xyz.blogspot.com hi ta eih chu, hilele na lut chiang a xyz.blogspot.in hn chi di.. UK apat lut le chi xyz.blo…