Examples
Perform mobile redirects
Create a redirect rule to redirect visitors using mobile devices to a different hostname.Redirect admin area requests to HTTPS
Create a redirect rule to redirect requests for the administration area of `store.example.com` to HTTPS, keeping the original path and query string.Redirect requests from one country to a domain
Create a redirect rule to redirect all website visitors from the United Kingdom to a different domain, maintaining the current functionality in the same paths.Redirect requests from one domain to another
Create a redirect rule to redirect all requests to a different domain, maintaining all functionality, except for the discontinued HTTP service (port 80).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.Redirect requests to a different hostname
Create a redirect rule to redirect all requests for `smallshop.example.com` to a different hostname using HTTPS, keeping the original path and query string.Redirect local visitors to specific subdomains
Create a redirect rule to redirect United Kingdom and France visitors from the `example.com` website's root path (`/`) to their localized subdomains `https://gb.example.com` and `https://fr.example.com`, respectively.Redirect visitors to a new page URL
Create a redirect rule to redirect visitors from `/contact-us/` to the page's new path `/contacts/`.Redirect from root to WWW
Create a redirect rule to forward HTTPS requests from the root (also known as the “apex” or “naked” domain) to the WWW subdomain.Redirect from WWW to root
Create a redirect rule to forward HTTPS requests from the WWW subdomain to the root (also known as the “apex” or “naked” domain).Remove locale from URL path
Create a redirect rule to redirect visitors from an old URL format with locale information to a new URL format.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
-