Back to Docs

Site not loading: Too many redirects

Fix redirect loops by disconnecting your domain from Lovable.dev.

Why this happens

When you have your custom domain connected to both Lovable.dev AND LovableHTML, a redirect loop occurs:

  1. Request comes to LovableHTML
  2. LovableHTML fetches from Lovable.dev
  3. Lovable.dev redirects back to your custom domain
  4. Request comes to LovableHTML again → infinite loop

The browser detects this loop and shows "ERR_TOO_MANY_REDIRECTS" or similar.

The fix: Disconnect from Lovable.dev

You need to remove your custom domain from Lovable.dev. Don't worry — your site will continue working normally through LovableHTML, with added benefits.

  1. Open your project in Lovable.dev
  2. Go to Settings — keyboard shortcut: Cmd+K (Mac) or Ctrl+K (Windows)
  3. Navigate to the Domains section
  4. Click the 3 dots icon next to your custom domain
  5. Click Remove to disconnect the domain

How to disconnect domain from Lovable.dev

What you keep after disconnecting

Your custom domain continues to work as normal, with these added benefits:

  • Fast edge load times — LovableHTML serves from edge locations worldwide
  • Better availability — Built on Cloudflare infrastructure for reliability
  • Crawler analytics — See which bots visit your site and when

Still seeing the error? Try clearing your browser cache or testing in incognito mode. The redirect loop may be cached in your browser.

How LovableHTML handles your traffic

After disconnecting from Lovable.dev, requests flow like this:

  1. Visitor requests your custom domain
  2. LovableHTML receives the request
  3. For bots: serves pre-rendered HTML instantly
  4. For humans: proxies to your lovable.app origin URL

Your lovable.app URL (e.g., my-project.lovable.app) continues to be the source of truth for your site content.