Your Blogspot Redirecting to .ng and Ads Not Showing On Desktop? Try This..

Blogger Nnadi Nnaemeka Donatus contacted me few days back to complain that Google ads generated from his hosted Google Adsense account are no longer displaying on the desktop view of his blogspot blog.

I checked his blog and discovered that the ads were ONLY showing on mobile view. I also noticed that his blog keeps redirecting to Before I could figure out what’s wrong, he sent me another message that the problem has been fixed.

So how?

Copy and paste the code below to the head section of your blog’s html. It will stop the redirection and ads will display on the desktop view.

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

Don’t know where to add the code?

==> Sign in to your Blogspot dashboard
==> Go to “Template” > “Edit HTML”
==> Click inside the html
==> Press CTRL F on your keyboard to find <head> or </head>

==> Copy the code directly below <head> or  above </head>
==> Click “Save Template”

View your blog and you should see the Google ads.

I hope it works for you.

Thanks to Nnadi Nnaemeka Donatus for sharing this.

Below is a video tutorial that will guide you :

NB: Ensure the code you pasted in your blog’s html appear exactly as the code in this tutorial, If a strange – or .  appears in the code before javacript, in between pathname, hostname and replace, delete them. If not this code won’t work for you.

Have fun!

Please Share :

See also :   How To Add Logo to Blogger Blog

Written by Jide Ogunsanya

Pro Nigerian Blogger, Digital Marketer and Web designer. I help business owners to grow their businesses online. You can join my Facebook Group here.


Leave a Reply
  1. Been following your blog for sometime now…u are good at what you do bro, thanks for all tutorials..

    Meanwhile …Catch up with Latest from Entertainment News and Celebrity Gossip at:

  2. Any body having that issue…? if you are using mtn simple server to blog..change to a normal subscirbed sim and check your blog will stop rdireting…

  3. Oga Jide thank you so much for this post. finally its .ng is not showing on my blog again. i had to source for another code
    Thank so much boss. God Will bless you the more

  4. I just put my youtube adsense on my blog , butt it shows blank. I applied what's above now it doesn't redirect to .ng but still showing blank. Is it because i just palced youtube adsense on the blog , Does it take a while before your youtube adsense start to show on blogspot ?

  5. thank you so much. It works completely when i copy the redirect com code into html editor on my blog, it is just 2 minutes. I tried the code from another blogger on the redirect url till i find it from you. Thank you so much.

Leave a Reply

We're glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our comment policy. Your email address is required but will not be published. No keyword stuffing in the name field and commenting from blah blah blah makes no sense. Thank You.

  • Do You Want To Work At Dubai ?Click Here
  • You Can Make Money Promoting Other People's ProductsRead More
  • Interested in starting data plans reselling business?Click Here
  • Want To Join A Forum Where You Can Discuss Blogging?Click Here
  • NetDivo ePin Manager Lets You Print Airtime Of All NetworksLearn More

Lenovo Unveils New YOGA Series of Convertible Laptops in Nigeria

Infinix Hot 2 becomes Africa’s first Android One Smartphone