Google now redirects Blogger blogs to country-specific domains. For instance, if you open example.blogspot.com in your web browser, you will be redirected to example.blogspot.in if you are located in India or to example.blogspot.co.uk if you are accessing the blog from UK.
Prevent Blogger from Redirecting your Blogspot Blog to Country-Specific URLs
9 September 2015
-
If you are not happy with the idea of Blogger redirecting your blog to a different URL, you can add the following piece of code to your Blogger template and it will always serve the .com address to your visitors irrespective of their geographic location.
-
Go to your blog inside the Blogger Dashboard and choose Template. Then click the “Edit HTML” button followed by “Proceed.” Next, copy-paste the following code into the template after the tag.
- Click the Save Template button and now your Blogger Blog will always serve with the blogspot.com URL.
-
The JavaScript snippet gets the URL of the current Blogger page and if it isn’t served from the .com domain, the code replaces the country specific TLD (like blogspot.co.au or blogspot.pk) with the blogspot.com URL. It also adds the /ncr switch to force-redirect the visitor to the blogspot.com address.
0 comments:
Post a Comment