> ## Documentation Index
> Fetch the complete documentation index at: https://dub.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting custom domains

> Learn how to troubleshoot common issues with custom domains on Dub.

When you're [setting up a custom domain on Dub](/help/article/how-to-add-custom-domain), you might run into some issues. Here are some common ones:

## domain.com redirected you too many times (ERR\_TOO\_MANY\_REDIRECTS)

<Frame>
  <img src="https://assets.dub.co/help/domain-redirect-too-many-times.png" alt="Browser error message saying 'dub.engineering redirected you too many times'" />
</Frame>

If you're getting a `domain.com redirected you too many times` error in your browser, chances are you're [using Cloudflare for your domain hosting](/help/article/using-cloudflare-domains) and are missing an extra configuration step to make this work.

To fix this, all you have to do is set your domain to use [Cloudflare DNS only](/help/article/using-cloudflare-domains#using-cloudflares-dns-only-recommended) (without Cloudflare Proxy).

## This site can't provide a secure connection (ERR\_SSL\_PROTOCOL\_ERROR)

<Frame>
  <img src="https://assets.dub.co/help/site-insecure-connection.png" alt="Browser error message saying 'This site can't provide a secure connection'" />
</Frame>

Another common error is when the `https` version of your domain doesn't work (but the `http` version does). When that happens, you'll get a **This site can't provide a secure connection** error in your browser.

The reason for this error is that the SSL certificate for your domain has not been generated yet, and it should automatically be resolved anywhere between 1 to 24 hours. If your domain still doesn't work after 24 hours, please [reach out to us](https://dub.co/contact/support) and we'll be happy to help you out.
