How to Prevent Redirecting From Blogspot.com to Country-Specific Domains

Programming Tutorial – How to Prevent Redirecting From Blogspot.com to Country-Specific Domains. Seegatesite will share a tutorial specifically for the blogger user (blogspot) that redirects the blogspot.com subdomain to specific country subdomains.

How to Prevent Redirecting From Blogspot.com to Country-Specific Domains

Actually this tutorial are old and many have shared in other sites, but there is no harm if the current share here because at the moment it may be beneficial to you. This tutorial I got from two sources, these are arlina design dan labnol

Note: Not recommended for bloggers who have put Adsense ads on their blogs to use this code. Because it would violate the rules of the Google AdSense policy.

 Lets begin the tutorial prevent redirecting from blogspot.com to country-specific domains below :

1. Open your blogger > Template > Edit HTML > The add this code below

Or

Or this code

2. Save the template.

Explanation :

When javascript bloggers get the URL of the current page and if it isn’t served from the blogspot.com domain, it will replace the specific country TLD (blogspot.co.id or blogspot.co.uk) with blogspot.com . It also adds the switch / NCR to force a redirect visitors to blogspot.com address. Now add the code above the location where the visitors who opened your blog, the blog will not be redirect automatically to another blogspot subdomain.

Thus tutorial about how to prevent redirecting from blogspot.com to country-specific domains, hope useful 🙂

The following two tabs change content below.
This site is a personal Blog of Sigit Prasetya Nugroho, a Desktop developer and freelance web developer working in PHP, MySQL, WordPress.

Leave a Comment

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.