# Running into ERR\_TOO\_MANY\_REDIRECTS with custom domain

**URL:** <https://answers.netlify.com/t/running-into-err-too-many-redirects-with-custom-domain/74157>\
**Category:** Support\
**Tags:** deployment\
**Created:** [August 24, 2022, 3:13pm UTC](https://answers.netlify.com/t/running-into-err-too-many-redirects-with-custom-domain/74157 "2022-08-24T15:13:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PixelPlusDesign](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/pixelplusdesign/32/40618_2.png) [@PixelPlusDesign](https://answers.netlify.com/u/PixelPlusDesign)\
**Post date:** [August 24, 2022, 3:13pm UTC](https://answers.netlify.com/t/running-into-err-too-many-redirects-with-custom-domain/74157/1 "2022-08-24T15:13:23Z")

</div>

I have my app: [home-sweet-home-remodelling-final-draft.netlify.app](https://home-sweet-home-remodelling-final-draft.netlify.app/)

Which runs on my domain: [https://hshremodel.com/](https://hshremodel.com/) (done with an “A” DNS record)

Now strangely it only seems to fail with ERR\_TOO\_MANY\_REDIRECTS about half the time.

I ran it through WhereItGoes: [https://wheregoes.com/trace/20224196071/](https://wheregoes.com/trace/20224196071/)

And it says there is a 301 redirect infinite loop occurring, but again not always, sometimes it just works and shows it’s running fine on WhereItGoes

How do I go about fixing this? I’d like to get this fixed soon as this is live on one of my clients websites, it had been running run fine for a week until today.

Any help would be greatly appreciated! Thanks!

Edit: Forgot to mention this is a Gatsby website and built using github continuous integration

---

<div class="post-metadata">

**Author:** ![coelmay](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/coelmay/32/24427_2.png) [@coelmay](https://answers.netlify.com/u/coelmay)\
**Post date:** [August 24, 2022, 9:54pm UTC](https://answers.netlify.com/t/running-into-err-too-many-redirects-with-custom-domain/74157/2 "2022-08-24T21:54:43Z")

</div>

Hey @PixelPlusDesign

`hshremodel.com` loads fine for me. It does appear to load through Cloudflare though _(proxied)_ which can/will cause issues as outlined in this support guide

> [@\[Support Guide\] What problems could occur when using Cloudflare in front of Netlify?](https://answers.netlify.com/t/support-guide-what-problems-could-occur-when-using-cloudflare-in-front-of-netlify/138):
>
> Last reviewed by Netlify Support - August, 2023 Note: We recommend not using both Cloudflare’s CDN (“Accelerate and Protect”, the orange cloud in their UI) and Netlify for the same site at the same time. Why? Read on! Netlify’s web service is not designed to work optimally with another CDN “in front of” our CDN. [Proxying to our service is in general not supported](https://answers.netlify.com/t/support-guide-why-not-proxy-to-netlify/8869) and we advise you not to do it for best hosting results. Cloudflare has made similar statements that it doesn’t recommend this usa…
