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.

How to Find Sitemap URL of Blogger and Blogspot Sites?

Sitemap for Blogger / Blogspot

Blogger blogs, like all other websites, have a sitemap, however their sitemap URL is somewhat different from other sites.
Sitemaps are usually found at www.yoursitename.com/sitemap.xml.
However, such a sitemap is not possible with Blogger.
As a result, you have a feed as a sitemap.
For bloggers, there are two sitemap URLs to use:
www.yourblog.blogspot.com/atom.xml?redirect=false
www.yourblog.blogspot.com/feeds/posts/default?=rss
While looking for the sitemap URL for this blog, I came upon these URLs.

Important Reminder: (update on 19-Mar-2018)

Using the aforementioned sitemaps, we discovered that Webmaster only indexes 26 URLs, which is inconvenient. So here’s something different. Please use the updated sitemap URLs instead of the old ones (which were provided years ago).
www.yourblog.blogspot.com/sitemap.xml
www.yourblog.blogspot.com/sitemap.xml?page=1
www.yourblog.blogspot.com/sitemap.xml?page=2
The complete sitemap index may be found on “sitemap.xml,” whereas “sitemap.xml?page=1” only has 150 pages. So, if your site has more than 150 articles, keep raising the page count. You may submit all of those sitemap URLs to Webmasters to improve your website’s crawling.

What is the purpose of a Sitemap?

A sitemap is required for search engine bots to crawl and index each and every page of our website in order for it to appear in search results. We may publish a sitemap to search engines so that they can crawl every post / page on your blog if we have one.
You may also use the Google Webmasters tool to submit similar URLs.
Google Webmasters: How to Submit a Blogger Sitemap
I’m assuming you’ve previously registered your blog with Google Webmasters.
Now go to the “Optimizations” tab and choose “Sitemaps.” Then choose “Add/Test Sitemap” from the drop-down menu.
It allows you to test your Sitemap URL and submit it to Google Webmasters.