Getting Started With CloudFlare™
- This article assumes that you have already set up CloudFlare and added your domain.
- We’ll be adding DNS records in Liquid Web’s Manage dashboard. If your site isn’t using Liquid Web’s nameservers, you’ll need to make changes at your registrar or DNS provider.
- We’ll be using cPanel to set up an .htaccess redirect. If you don’t have access to cPanel, you will need to edit your .htaccess file directly; if you’re using a web server other than Apache (such as Nginx or IIS), you’ll need to set up the redirect manually. You can find tips for doing so in the bonus content section of this article.
Note: If your site’s DNS records are managed by CloudFlare or any other external source, our Heroic Support® team can provide the records you will need to add there to configure CloudFlare, but we will not be able to access your DNS records themselves.
Step #1: Get Your CloudFlare DNS Settings
- Once your site has been added to CloudFlare via Manage, select Domains from the left menu, click on the CloudFlare tab and click the [+] button next to your domain name to expand the CloudFlare dashboard.
- Now click on the DNS Settings link near the bottom-right corner to view your settings.
- The popup window will show you the specific changes you’ll need to make for your site:Specifically, you’ll need to:
- Add an .htaccess redirect to ensure all traffic to your site uses the “www” subdomain.
- Add a CNAME record for the subdomain “cf-landing.yourdomainname.com”.
- Change your CNAME record for the “www” subdomain to point to “www.yourdomain.com.cdn.cloudflare.net”.
Step #2: Redirect Traffic to Your ‘www’ Subdomain
If you have access to cPanel, setting up the redirect is a simple process using the method detailed below. If you don’t have access to cPanel, though, you’ll need to set up the redirect manually. You can find tips for doing so in the bonus content section of this article.