Tag Archives: blogspot

How to Keep Stay with your .com Domain for Blogger

Whenever you have created a blog using blogger, while publishing it will redirect you to your country specific domain instead of .com. To avoid this country specific domain extension redirect, follow the below steps.

  • Go to your Blogger Dashboard
  • Select Template section
  • Now, Click the “Edit HTML”
  • Then, copy-paste the following code after the tag into the HTML template.

<script type=”text/javascript”>
var blog = document.location.hostname.split(“.”);
if (blog[blog.length – 1] != “com”) {
var ncr = “http://”+ blog[0] + “.blogspot.com/ncr”;
window.location.replace(ncr + document.location.pathname);


Note: In the above code, put a space before + blog[0], if it is not working properly.

How to make the Titles as SEO Friendly in BlogSpot

  1. Go to Layout>edit HTML in your Blogger dashboard.
  2. Search for this tag: <title><data:blog.pageTitle/></title>
  3. Replace this tag with the following code:

<b:if cond=’data:blog.pageType == &quot;index&quot;’> <title><data:blog.title/></title> <b:else/> <title><data:blog.pageName/> | <data:blog.title/></title> </b:if>

  1. Save your template and you should see the results in your web browser as depicted in the images below.
  2. It may take a few days for the changes to show up on the google search results. I guarantee you that you will start receiving more traffic from google once you are re-indexed!
%d bloggers like this: