How to Remove Country Specific URL from Blogspot / Blogger Site | Remove .in .fr .ca

For web developers, Country Specific URLs may be an issue at times. When accessed from India. However, since certain applications are designed to operate on the.com domain name, they will not work on that country-specific URL. So I conducted some research to find a solution to this issue. And now, here’s the answer.

How to Remove a Blogspot / Blogger Country Specific URL

Remove the.in /.fr /.ca /.au /.pk from your blogger site and replace it with a.com domain name from anywhere in the world:

Go to your blogger account and log in.
Edit HTML in the Template
Look for the head> tag in the HTML code. It will most likely be at the top of the code.
Just below the head> tag, paste the following code.

  • Paste the following code just below the <head>
<script type=”text/javascript”>
var blog = document.location.hostname;
var slug = document.location.pathname;
var ctld = blog.substr(blog.lastIndexOf(“.”));
if (ctld != “.com”) {
var ncr = “http://” + blog.substr(0, blog.indexOf(“.”));
ncr += “.blogspot.com/ncr” + slug;
window.location.replace(ncr);}
</script>

Save the template and take use of the.com domain name.

I’m hoping that you’ll be able to obtain a.com domain name instead of a country-specific URL by utilising this technique. If you find this article to be useful and interesting, please leave a comment.