Can I use Cloudflare URL forwarding to redirect an entire domain to another domain?

Question

Grade: Education Subject: Support
Can I use Cloudflare URL forwarding to redirect an entire domain to another domain?
Asked by:
83 Viewed 83 Answers

Answer (83)

Best Answer
(331)
Yes, you can. In the 'If the URL matches' field of a Page Rule, enter your entire domain (e.g., `example.com/*`). In the 'Then the settings are' section, select 'Forwarding URL', choose '301 - Permanent Redirect', and enter the destination domain (e.g., `newdomain.com`). The `/*` wildcard ensures all subpages are also redirected.