Cloudflare Docs
Cloudflare Fundamentals
Cloudflare Fundamentals
Visit Cloudflare Fundamentals on GitHub
Set theme to dark (⇧+D)

Redirect one domain to another

If you have an alias domain that only forwards traffic to another domain, you can set up redirects directly within Cloudflare.

  1. Add your alias domain (for example, to Cloudflare.

  2. Make sure that your alias domain has a proxied DNS A or CNAME record that properly resolves DNS queries. You may also want to include a record for the www subdomain.

    Type Name IPv4 address Proxy status
    A @ Proxied
    A www Proxied
  3. Use Bulk redirects to forward traffic from your alias domain to your other domain. Select Include subdomains and Subpath matching to cover your entire alias domain (for example, and

    Source URL Target URL Status Selected parameters 301 Include subdomains and Subpath matching