|
Can I enable CloudFlare on my root domain (i.e. mywebsite.com) that is an A record?
Author: admin admin Reference Number: AA-00238 Views: 17667 Created: 2011-08-20 12:14 Last Updated: 2013-03-25 11:15 |
0 Rating/ Voters
|
    |
If you activate CloudFlare through
Byethost, CloudFlare can only accelerate and protect CNAMEs, not A
records, which often 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. You should work with Byethost, but as a general
outline, a redirect looks as follow:
RewriteEngine
On #
Rewrite added for CloudflareInstall - mysite.com #
Wednesday 25th of August 2010 04:59:42 AM RewriteCond
%{HTTP_HOST} ^mysite.com$
[NC] RewriteCond
%{SERVER_PORT} ^80$ RewriteRule
^(.*)$ http://www.mysite.com/$1 [R=301,L]
|
|
|
|
|
|
|
|