The Problem
If you have registered a blog in Blogger, you will normally have a blogspot subdomain e.g. yourdomain.blogspot.com. But you can also use custom domain name for blogger like paid TLDs like .com, .net, .info etc or free domains like .tk, .co.cc, .cc.cc etc. Google have given proper instructions about this in a detailed help documentation.
But sometimes, even after following all the instructions properly, you may see the new domain being redirected to a 404 Error page with the address www.blogspot.com/ncr/.
This is very frustrating, right? I will be discussing the reason behind this error and the solution in this post.
The Reason
While I'd added .com domain to this blog I hadn't faced any problem but I recently have tried to add .tk domain to my another educational blog and have faced such problem which led me to search for this. When I searched for www.blogspot.com/ncr/ in Google, I get to know that ncr means "no country redirect". This alerted me about the reason behind this error page.
Google recently have redirected all Blogger blogs to Country-Specific URLs [e.g. yourdomain.blogspot.com to yourdomain.blogspot.au]. And due to the possible bad consequences of this redirection (302 redirection), myself and many bloggers have adopted a solution suggested by experts.
So, for fixing this error, I removed the customization that I made in the HTML template for restricting redirection of my blogspot subdomain to country-specific url and that has solved the problem.
The Solution
Go to your blog inside the Blogger Dashboard and choose Template. Then click the “Edit HTML” button followed by “Proceed.” Search for the following script in there.
<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>
Select and delete it. Now reload your new domain and see the magic.
Cheers!!
thank you very much
ReplyDeleteSujay dada, i didn't find those codes on my blogger!! it was not in there! now what should i do? it's really bothering me the 404 error of my new custom domain!
ReplyDeleteHi Deb,
ReplyDeleteAre you getting same error code or just a 404 error? If the same error code then there must be www.blogspot.com/ncr/ somewhere in the template.
This is fake
ReplyDelete