Cloudflare can improve the performance of your landing page and speed up loading times by using multiple data centers. Some domain providers require Cloudflare to set the DNS records and connect domains or subdomains with landing pages created with Smartpages.
This guide will show you how to add A and CNAME records in Cloudflare. When adding or editing records, you must temporarily disable the proxy for the domain.
Add a new domain to Cloudflare
- Add your domain to your Smartpages account. Follow this guide.
- You need to set up a free account to add a domain to Cloudflare and change DNS records. You can sign up here.
- Enter your domain and click on Add site.
- Select the Free plan.
- Once the quick scan has been completed, you can add DNS records.
- Add new records.
Remember to disable Cloudflare (proxy) after adding new value for each record and then save changes. An active proxy will make it impossible to install the SSL certificate in Smartpages.
– Add two new DNS records (CNAME and A) if you want to redirect a root domain.
IPv4 address: 126.96.36.199
– Add one CNAME record if you want to redirect a subdomain.
7. Save changes. Cloudflare will indicate the nameserves that you should remove and add to your domain provider’s account.
8. Changes can take up to 24 hours.
Changing DNS records to Smartpages– I already have my domain in Cloudflare
- If you have a domain added to Cloudflare and you want to redirect it to Smartpages, you need to switch off Cloudflare (proxy) for some time. Click on Proxied to turn it off.
- Now you can add your domain to Smartpages. When you see your domain active on the list, click on DNS only to switch on Cloudflare cloud again.
Add SSL in Cloudflare
- Make sure that your domain has been installed correctly in Smartpages.
- Go to the SSL/TLS tab in your Cloudflare panel and find SSL options. Chose Full (strict) SSL.
Full (strict) SSL option in Cloudflare
To guarantee the highest security of your landing page, you should use the Full SSL (strict) in Cloudflare. It requires a secure connection between your visitor and Cloudflare along with the secure, authenticated connection between Cloudflare and the server, where the landing page is hosted (in this case, in our Smartpagesserver).
Active Cloudflare CDN acts as a proxy, so our system cannot verify the CNAME points to Smartpages servers correctly. We are not able to install the Let’s Encrypt SSL for the domain in this case, because our system relies on verifying the CNAME. Once the SSL certificate has been successfully added in Smartpages, you can enable the Cloudflare proxy again.