Cloudflare on domain pointed with an A record
Posted by on 02 December 2012 10:00 PM

Cloudflare can only work on CNAMES, 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’ in 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]

(3 vote(s))
Helpful
Not helpful

Comments (1)
Ron & Ines Wagner
13 November 2013 10:17 AM
how to work CNAME
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).