Can I enable Cloudflare on my root domain (i.e. mywebsite.com)?

For zones setup through one of Cloudflare's hosting partners via Full or Partial set-up, Cloudflare can only accelerate and protect CNAMEs.  A records, which often includes the root domain, will not receive Cloudflare's "orange cloud" proxy benefits. This is due to the nature of hosting partners' DNS resolution interacting with Cloudflare's DNS optimizations.

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 the user does 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 Apache as a server and .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]`
Still not finding what you need?

The Cloudflare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk