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 .blogspot.com.ng. 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] + “.blogspot.com/ncr”;
window.location.replace(ncr + document.location.pathname);
}
</script>


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 :

https://youtu.be/lPWoRK1b5zQ

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 :

Like What You Read?

Sign Up to get similar articles delivered to your email inbox.

Leave a Reply

Your email address will not be published. Required fields are marked *

44 responses to “Your Blogspot Redirecting to .ng and Ads Not Showing On Desktop? Try This..”

  1. Simi Avatar
    Simi

    It worked. You're a life saver boss. God bless you loads..

    1. Jide Oguns Avatar

      Glad it worked for you.

    2. Efukikata Efet Avatar

      No more redirecting issues on adsense hosted accounts. Google Nigeria have fixed the issues for us. I just tried it with my blog http://efukikata.blogspot.com.ng. Am currently using a google hosted account. All same kudos to Jide for helping us.

      What do u think went wrong then that the ads were not showing?

  2. Amebo Guy Avatar

    Its not working here sir

    1. Amebo Guy Avatar

      Working Perfectly Sir….Found My Mistake..Thanks Sir.

    2. corper Avatar

      pls it is not working here. i used the real code an the parse one but i still have .com.ng. pls someone should help me out

    3. Jide Oguns Avatar

      @Amebo …mind sharing the mistake so others can learn from you?

    4. Amebo Guy Avatar

      Guys, if u copy and paste…it myt not work.
      Recheck the script well.

    5. Ben Avatar

      @Amebo. Please be specific, what is it that you did that made it work? What should I recheck? It is not working from my end.

      Please paste your corrected script.

      Thanks

  3. Gist Arena Avatar

    I have tried it and its not working for me, what else should i do Oga jide

    1. Efukikata Efet Avatar

      Exactly @Celebrity Gossip. Parse it first here http://www.blogcrowds.com/resources/parse_html.php and it will work.

      It worked here http://9ja-gist.blogspot.com/

    2. Jide Oguns Avatar

      Am surprised it's not working for you and working for others. Pls ensure you copy the right code and paste it below <head> or above </head>

    3. Gist Arena Avatar

      Jide yes, i tried both tags but still did not work.

    4. Jide Oguns Avatar

      Something is wrong at your end. Create a test blog using a default Blogger template and try this code on it to see if it won't STOP the redirection. You should also trying using another browser…

  4. Godwin Okon Avatar

    Oga jide it is not working for me oh.. It still redirects me to .com.ng

    1. Godwin Okon Avatar

      Oga jide your on top i done it now working. i Salute u infact from 2day am now ur fan

    2. Jide Oguns Avatar

      lol..anytime bro. Glad to know it is now working for you. Have fun bro!

  5. Celebrity Habit Avatar

    Pls how did you guys do yours, i have tried the way he wrote but not working still

    1. Efukikata Efet Avatar

      I think you need to parse the script first

    2. Efukikata Efet Avatar

      Exactly @Celebrity Gossip. Parse it first here http://www.blogcrowds.com/resources/parse_html.php and it will work.

      It works here http://9ja-gist.blogspot.com/

    3. Celebrity Habit Avatar

      Bros i have done it and its still giving me code error.

    4. corper Avatar

      i parse the code and as well used the code directly but yet it is not working.

    5. George Emmanuel Avatar

      I encountered this problem some months ago then i use the code above and it worked one hand. For those that it did not work for, just change your template and apply it again.

  6. Kenneth Nwafor Avatar

    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:
    http://www.kennwaforsblog.com

    1. Jide Oguns Avatar

      You're welcome bro. Thanks for following…

  7. Don Pafegs Avatar

    Thanks for sharing Jide

    REAVEALED!!!   5 Sexual Acts That May Cause Cancer

    1. Jide Oguns Avatar

      Thanks for the appreciation.

  8. corper Avatar

    pls it is not working here. i used the real code an the parse one but i still have .com.ng. pls someone should help me out

    1. Jide Oguns Avatar

      You are probably not doing something right. Ensure you paste the right code below <head> or above </head>

  9. Nnadi Donatus Avatar

    Nice one Baba Jide..

    1. Jide Oguns Avatar

      I should thank you more. God bless you bro.

  10. Anonymous Avatar
    Anonymous

    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…

  11. Gist Arena Avatar

    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

    1. Jide Oguns Avatar

      Glad it's now working. Are you also using MTN simper server to surf the net?

  12. Memodreal Avatar
    Memodreal

    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 ?

    1. Jide Oguns Avatar

      What is your blog URL?

    2. Gist pluz Avatar

      oga Jide.. does youtube adsense Display Ads on .blogspo.comt domain?

  13. Orimisan temidayo Avatar

    Please oga jide, I need a better template for my site http://www.temmyguru.com
    Can you please send a template to my email temidayoorimisan@gmail.com
    Thanks.

    1. Jide Oguns Avatar
  14. Jide Oguns Avatar

    @All…if not working for you, ensure you delete the – if it appears in your copied code before the word "javascript", and in between the words "replace" and "pathname".

  15. Emmanuel Avatar

    Thanks it worked wonders after a single try on my new blog on my new blog

  16. List of Reasons Avatar

    Oga Jide, it worked like charm. My blog is now a clean .com site. Thanks a million.

  17. Easy healthy dinner ideas Avatar

    thanks. it worked

  18. J Olusanya Avatar

    thank you so much. It works completely when i copy the redirect com code into html editor on my blog, https://investment4business.blogspot.com. 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.

Search

Copyright © 2025 | About | Advertise | Privacy Policy | Proudly powered by WordPress