Web Toolbar by Wibiya Tec N Tricks: How To Redirect From Blogspot To Custom Domain

Wednesday, 13 June 2012

How To Redirect From Blogspot To Custom Domain

Recently I have Moved from neway4u.blogspot.com  To tecntricks.blogspot.com

Just Because It Is More Relevant with stuff that i post here, Nothing Because Of Seo :)

But The Great thing that Google Is Smart Enough To Notice and Show Me on Results for my new blogspot domain.

But not same for all search engines Like I hoped  Example yahoo Or Bing :(

I was Standing on #1 page On Bing but my domain Name Shown was old.

So anyways i got a quick solution for it .


Here It Is A Simple Way To 301 Redirect from blogspot to new domain Or
How To Redirect From Blogspot To Custom Domain  [Javascript Method]

1) Make Sure You Own Two Of Domain


2) Go To Blogger Dashboard of your old domain

3) Click On Design >>Edit  Html

4) Just Right After <head> Copy And Paste This Code

<script>
function redirect(){
var p=document.URL;
var n=p.replace("neway4u.blogspot","tecntricks.blogspot");
//alert(n);
window.location=n;
}
document.onload = redirect();
</script>


5) Where neway4u.blogspot is your old Domain And tecntricks.blogspot is New or Where You Wanna Redirect it to. so edit it accordingly.

Thats It Now Anyone Visiting You Via Old Blogspot Domain Will Get Redirected To New Domain, Simple And Easy :)


The Person Will Land On Exact Blog Post Not Index Page That's Beauty Of It :)


Hope Will Be Helpful For Newbies.Of Course There Are Many Other Methods But I Created It As Simple As Possible.


Thats All !! Good Nite For Now !!

No comments:

Post a Comment