Skip to content

How I Fixed Origin Error for a Site on Ezoic

Ezoic is a certified AdSense partner that uses machine learning to optimize sites for the best revenue by testing different ad layouts and positions.

For Ezoic to do this, one has to integrate their site onto their platform using either a script or at the DNS level. I went with the latter and had no issues with the platform other than taking a hit traffic wise in the first few months after integration.

That’s until earlier this month when by chance I noticed the naked (root) domain of my blog wasn’t redirecting to the WWW version. To make matters interesting, while the insecure HTTP version wasn’t redirecting (returned a 404 from Google) the HTTPS version was returning an Origin Error.

If you’re wondering why the 404 was coming from Google rather than from my site, it’s because this blog is using Google’s Blogger on a custom domain. (I’ve since migrated to WordPress)

While all this wasn’t a cause for major concern, after all my preferred domain in Google Search Console was set to use the WWW version, I knew I had to fix this immediately for the sake of the few visitors that visit my blog directly.

Tracing the Problem

I was certain that Ezoic was behind the error so I checked their help pages and sure enough I found a help page that touched on the origin error and how to resolve it.

However, none of the fixes mentioned there would work with my Blogger hosted blog, so I contacted my account manager for help. She contacted their tech team about the issue and later replied that I had to resolve the redirection issue on my end before they could look into the Origin error.

I was stumped by this turn of events. Nevertheless, I decided to first take a took look at the SSL settings in Ezoic. In the app I noticed there was a setting to redirect the HTTP traffic to HTTPS that was turned off.

Since I had Blogger redirecting to HTTPS in its settings, I thought I should do the same here. Unfortunately, that resolved  neither the redirection nor the origin error.

My next stop was the Third-party domain settings in Blogger where for some reason I found the redirection to the WWW version had been turned off.

When I tried to turn it back on I was yet again met by another error. Apparently, Google could not verify ownership of the domain I was using.

That prompted me to check the CNAME and A records that are needed to point Blogger to my custom domain. These records were however no longer being hosted in my domain registrar (Namecheap) since changing my Nameservers to those of Ezoic.

I had overlooked this detail during the integration with Ezoic and up until now had never verified the DNS records Ezoic had imported. So I looked into the DNS Manager available in my Settings Dashboard and as I had suspected, Ezoic had not imported one of the unique CNAME records that’s required to verify my domain ownership.

Fixing the Redirection Error

Knowing I had found the culprit, I added the missing CNAME record into the Ezoic DNS Manager and wait to see if the redirection would work.

A screenshot of the Add DNS record in Ezoic dashboard.

It didn’t though I presume this was because the DNS records were taking longer than usual to take effect. Fortunately, in the meantime I could also reverify my ownership of the domain using a TXT record via Google Search Console.

I did that and 30 minutes later the reverification was successful. Finally, I could save the redirection settings.

Unfortunately, the redirection failed once more. However, the 404 error from Google had gone away and the naked domain in HTTP was now redirecting to the naked domain in HTTPS and then returning an Origin Error.

Fixing the Origin Error

Remember the HTTPS redirection I activated in Ezoic? That option was the one behind this new redirection. I turned it off and just like that the redirection to WWW started working again. Gone also was the accompanying origin error.

A screenshot showing the Automatic HTTPS Redirect option in Ezoic's dahsboard.

My blog is now once more working as intended: both secure and unsecure naked domain is redirecting to the secure WWW version as it used to do before.

The bottom line here is that if you’re experiencing the origin error you may want to check the redirection and DNS Settings for your domain.



  1. I recently integrated my blog with Ezoic still awaiting their ad serving approval. I started receiving Origin Error and 502 Error as soon as I finished the integration process. I also tried all their recommended solutions and non worked. Ezoic support and hosting provider support didn’t help at all. In fact, their solutions worsened the problem. I’ve followed your simple steps and my site’s behaving normally again (for now). I’ll observe it over time to see if the problem is 100 percent solved. Thanks for your insightful information.

      1. Update on the situation. Still getting Origin Error. I cannot access the posts/edit post menu on WordPress.

        1. Kelvin Administrator

          Hey Brian,
          Which SSL Certificate are you using? If you’re using the Ezoic one, could you try disabling it and use the one from your server (or Cloudflare if you have it integrated) and see what happens.

  2. Hey man thanks for this, I’m using blogger and everything is good, except that ezoic ads are not showing. They told me to disable cache at my host, however there’s no disable cache in blogger. Can you help me please

    1. Kelvin Kathia Administrator

      Hey, when I was using Blogger, the Ezoic ads did show up for on my site just fine. I’m not sure why they aren’t working on your site but Ezoic support should do more to troubleshoot the issue for you. The only thing I can think of is that in my case I had integrated with Ezoic at the DNS level via the Cloudflare app. I didn’t try the JavaScript method so I’m not sure whether it worked well with Blogger.

Leave a Reply

Feel free to share your comments or questions with me. I may not be able to respond immediately so please check later once I've approved your comment.

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

Kelvin Kathia

Kelvin Kathia is a writer that's passionate about sharing solutions to everyday tech problems. He's the founder and editor of Journey Bytes, a tech blog and web design agency. Feel free to leave him comments or questions regarding this post, or by leaving him a message on the contact page. If you found his content helpful, a donation is much appreciated.