Wednesday, May 2, 2012

Redirect Blogger Blog dot in to dot com Domain

I remember before 2 years back blogger shows blogspot.com domain and after that some duration it converts to blogspot.in. This change is based on country specific domain. Blogger announced all BlogSpot domains means blogspot.com to converts to .in, .au. etc. It’s based on country specific domain extensions. This is called as redirection of domain. Recently this redirection is implemented in India for all blogger blogs. In one hand this redirection is called as 302 redirect, which include in temporary redirection and not 302 Redirect which is permanent redirection of Domain. That we learned in last article post. This redirection coding is also known as a ‘country-code Top level Domain’ (cctld).

Now see the following example then you will get whole idea about it:

If you browse a blog  like xyz.blogspot.com from India it will supposed to be show xyz.blogspot.in, Similarly if browse same blog from Australia, it will be blogger redirection to xyz.blogspot.au. And same with other country like New Zealand etc.

Now your mind may be stuck at this point, how to stop 302 temporary redirect (.com to .in Domain). In this blog I am giving you some tips to avoid or disable temporary redirection, because temporary redirection is not suitable for Google spider. You need to solve this issue at your end. Solution is simple you needed to add some code to your blogger blog in HTML back-end to stick with blogspot.com



Take the following steps to disable country specific Domain redirection in blogger blog.

1. Login to your blogger dashboard –> click on Template–> click on Edit HTML

2. Click on Proceed. You will see all code of your blog is there. First you have to take your blog backup on your local PC.

3. Now click on check box of Expand Template Widgets.

4. Secondly search for </head> Code in your template.

5. Copy following Code & paste Before </head> and save your changes.


<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/’);}

</script>



Hope this will help you, if you like it please share it……

(SEO Pune)

Reactions:

3 comments:

Cristeen said...

fantastic post thanks for sharing
web agency brussels

cm punk said...

this is such a nice and useful information for us...i appreciate urs word.........Internet Marketing Consultants

Link Building Service Company said...

i try this code for redirection of .in to .com but am not successful in implement this changes