Redirect requests for a domain to a new domain
Create a redirect rule to redirect all URLs for a domain to point to the root of a new domain, including any subdomains of the old domain.
In this example, an old website was discontinued and replaced by a new one in a different domain. The functionality is different, and all URLs should now point to the root of the new domain. The same applies to any subdomains of the old domain.
- 
Create a Bulk Redirect List with the following URL redirect: - Source URL: example.com/
- Target URL: https://example.net/
- Subpath matching: Enabled
- Include subdomains: Enabled
- Preserve path suffix: Disabled
 
- Source URL: 
- 
Create a Bulk Redirect Rule that enables this list. 
This configuration will perform the following redirects:
| Request URL | URL after redirect | 
|---|---|
| http://example.com/ | https://example.net/ | 
| https://example.com/ | https://example.net/ | 
| https://subdomain.example.com/ | https://example.net/ | 
| https://example.com/my/path/to/page.htm | https://example.net/ | 
| https://example.com/search?q=term | https://example.net/ | 
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark