Can I enable CloudFlare on a wildcard (*) sub-domain?

No, for security reasons, CloudFlare does not proxy traffic to a wildcard sub-domain. You have to explicitly list the sub-domain as a CNAME in your DNS records to be able to activate CloudFlare.

Can I enable CloudFlare on my root domain (i.e. mywebsite.com) that is an A record?

CloudFlare can only accelerate and protect CNAMEs, not A records, which often includes the root domain. If traffic goes to a root domain and you want to accelerate and protect the traffic using CloudFlare, you can add a redirect to ‘www’.

If you do not forward the traffic, then any traffic to www.mydomain.com will be accelerated and protected by CloudFlare (and shown in the statistics) and any traffic to mydomain.com will not be served by CloudFlare.

If you are using .htaccess to do redirections, here is how you implement a redirect:

   `RewriteEngine On
   RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
   RewriteCond %{SERVER_PORT} ^80$
   RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]`
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I activate CloudFlare for my hosting account?

Getting started is super easy. You can activate Cloudflare on your account by following the...

Is CloudFlare compatible with a website with SSL?

Yes, a site with SSL can use CloudFlare, however there is an extra step. If the SSL is on its own...

What does the orange and the grey cloud means in the CloudFlare section of my cPanel?

An orange cloud means that your web traffic will pass through the CloudFlare system (Enabled). A...

Why is my subdomain not working?

The general cause of a subdomain on Cloudflare not working on a site is that you haven't added it...

Why can't I find CloudFlare icon on my cPanel?

We are currently migrating our servers from our current datacenter to a new datacenter. Only...