Skip to main content
  1. Home
  2. Knowledge Base
  3. CloudFlare
  4. Can I enable Cloudflare on a wildcard (*) subdomain?

Can I enable Cloudflare on a wildcard (*) subdomain?


Cloudflare supports wildcard DNS records. Within Cloudflare, wildcard DNS records can be either through the Cloudflare Proxy or DNS-hosted-only.

Can I enable Cloudflare on my root domain (e.g., that is an A record?


When using the Cloudflare nameservers directly, you can enable Cloudflare’s proxy service on A or AAAA records.

While Cloudflare can proxy all types of HTTP traffic, it cannot be used for email and special care must be taken if you are proxying the main domain address to ensure the MX record address is not included in the Cloudflare Proxy.

To implement a redirect to www using .htaccess:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^$ [NC]
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$$1 [R=301,L]

NOTE: replace “” in the above example with your actual domain name.

Was this article helpful?

Need Support?
Can't find the answer you're looking for?
Contact Support

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.