Configure a 301 Redirect for an Auth0 Custom Domain

Overview

Administrators decommissioning an Auth0 tenant often require a 301 permanent redirect for the associated custom domain. Auth0 does not provide a built-in dashboard option for configuring 301 redirects. To resolve this, administrators must configure the redirect at the Domain Name System (DNS) level or host a dedicated server to handle path-specific redirects.

Applies To

  • Auth0
  • Custom Domains
  • 301 Redirects

Cause

The option to configure a 301 redirect is not available in the Auth0 dashboard because Auth0 does not natively manage Domain Name System (DNS) routing. Custom domain redirects must be handled externally by the DNS provider or a dedicated server.

Solution

How does Auth0 handle 301 redirects for custom domains?

Auth0 does not require or support special configuration for 301 redirects within the dashboard. Administrators must change the DNS Canonical Name (CNAME) record pointing to Auth0 at the DNS level.

 

Modify the DNS configuration at the provider level to redirect the entire domain, or deploy a dedicated server with an updated Address (A) record to manage path-specific routing.

  • To redirect the entire domain, handle the configuration directly through the DNS provider. 
  • To redirect a specific path (such as /login), host a dedicated server for the domain. Remove the existing CNAME record and set an A record pointing to the new server. Configure the new server to issue a 301 redirect when it receives a request for the specific path.

Recommended content

No recommended content found...