Can I use CloudFlare on the root of my domain such as mydomain.no?


EXPERIENCING PROBLEMS WITH OUR SERVICES? RUN A DIAGNOSE FIRST TO SAVE YOURS AND OUR TIME

Added: 11.01.2012 23:57:33     Last updated: 11.01.2012 23:57:33

In this case mydomain.net would be A-record and CloudFlare cannot be used for these. CloudFlare requires a CNAME-record. If you have traffic to yourdomain.net we recommend you redirect the traffic to www.mydomain.net by using .htaccess file. By not doing this the traffic to mydomain.net will not use CloudFlare, while the traffic to www.mydomain.net will be using CloudFlare.

To redirect the traffic for www.mydomain.net add the following to .htaccess file:
RewriteEngine On
# Rewrite lagt til for CloudflareInstall - mittdomene.no
RewriteCond %{HTTP_HOST} ^
mittdomene.no$ [NC]
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ http://www.
mittdomene.no/$1 [R=301,L]