Blogger Tips and Tricks |
How to redirect blogger blog to blogspot.com address Posted: 27 Feb 2012 04:37 PM PST How to redirect blogger blog to blogspot.com address This is a guest post from Darssh. Darssh is a Blogger, Entrepreneur and Internet Lover. It is not a new thing since few days that your blogspot.com blog may redirect to a country based domain. Perhaps it is worldwide. Every blogger blog owner may have the same problem of automatic redirection. So here in this post, we have a tweak that enables your blog to stay on blogspot.com URL. Well, first of all let's answer the question. Why a .com redirect to a ccTLD (Country Specific Top Level Domain) URL may hurt you? This is because according to MR. Search Engine Optimizer's law, you can't host the same content on different domains. If you are using blogger on your own top level domain, then there is no point of worry. But if your blog has a .blogspot.com address in its tail, then it may hurt you. So, let's get into the answer now. Here is the simplest JavaScript code (Pretty short too!) that you can use to save your blog from being redirected: if ((window.location.href.toString().indexOf('.com/'))=='-1') { window.location.href = window.location.href.toString().replace('.blogspot.in/','.blogsp ot.com/ncr/'); } Place this in the HTML code of your blog and you won't see any redirect further. Demo Note: This code is for stopping .blogspot.in redirects. You need to change it to your own country's TLD. |
You are subscribed to email updates from the original Blogger Tips and Tricks To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment