country specific domain 302 redirection in blogger blogspot
Blogger recently introduces a Country Specific URL's redirection for all
BlogSpot domains subdomains.Bloggers who do not own a top level domain
will be affected by this Country Based 302 Redirection.Your readers will see
their country specificdomain extensions instead of .com redirection.
Hence this redirection is called "country-code Top Level Domain" or
ccTLD. It also knows as blogger specific "302 Redirect" which is a temporary
redirection and not a 301 redirect which is a permanent change of address.
How To Disable Country Based 302 Redirection
1. Go to your --->Blogger Dashboard
2.click on ---> Design tab
3.Take --->Edit HTML tab.
4.Copy the code "</head>"and search for that code by pressing ctrl+F.
country specific redirection script
SCRIPT I
code----------------------------------------------------------------------------start
<script type="text/javascript">
if ((window.location.href.toString().indexOf('.com/'))=='-1')
{
window.location.href = window.location.href.toString().replace
('.blogspot.in/','.blogspot.com/ncr/').replace
('.blogspot.com.au/','.blogspot.com/ncr/').replace
('.blogspot.co.nz/','.blogspot.com/ncr/');
}
</script>
code---------------------------------------------------------------------------------------------- end
If the above code does not work well try this code.
CODE-------------------------------------------------------------------------------
<script type='text/javascript'>
if ((window.location.href.toString().indexOf('.com/'))=='-1')
{
window.location.href = window.location.href.toString().replace('.blogspot.in/','.blogspot.com/ncr/');
}
</script>
CODE--------------------------------------------------------------------------------
Paste the above Country Specific redirection script and paste it before </head>
as mentioned in step 4.
NOTE: Make sure to take backup of your Template before making any changes to your HTML
code.It is available on the EDIT HTML tab.
No comments:
Post a Comment