Knowledge Base
Cloudflare on Domain Pointed with an A Record
Cloudflare can only work on CNAME records, which includes the root domain. If you have traffic that goes to your root domain and you want to accelerate and protect the traffic using CloudFlare, you can add a redirect to ‘www’ to your .htaccess file.
RewriteEngine On
# Rewrite added for CloudflareInstall
RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
* Your feedback is too short