Sign Up for Cloudflare
If you don’t already have a Cloudflare account, create one at dash.cloudflare.com/sign-up.
Add Your Domain to Cloudflare
Once your account is created:
- Log in to your Cloudflare dashboard
- Click Add a Site
- Enter your domain name (e.g.,
yourstore.com) - Select the Free plan (or any plan you prefer)
- Cloudflare will scan your existing DNS records
- Continue to the next step where Cloudflare will provide you with nameservers
Your assigned nameservers will be different. Make sure to copy the exact nameservers shown in your Cloudflare dashboard.
Update Your Domain's Nameservers
You need to point your domain to Cloudflare’s nameservers at your domain registrar.
- Namecheap
- Other Registrars
- Log in to your Namecheap account
- Go to Domain List in the left sidebar
- Click Manage next to your domain
- Scroll down to the Nameservers section
- Click the dropdown and select Custom DNS
- Enter your Cloudflare nameservers:
- Nameserver 1: Your first Cloudflare nameserver (e.g.,
aaron.ns.cloudflare.com) - Nameserver 2: Your second Cloudflare nameserver (e.g.,
bella.ns.cloudflare.com)
- Nameserver 1: Your first Cloudflare nameserver (e.g.,
- Click the green checkmark button to save your changes
Configure DNS in Cloudflare
Once your nameservers have been updated and Cloudflare shows your domain as active:
- Go to your domain in the Cloudflare dashboard
- Click DNS in the left sidebar
- Click Add Record
- Configure the record:
- Type:
CNAME - Name:
@(or enter a subdomain likeshopif you wantshop.yourstore.com) - Target:
fallback.mykomerza.com - Proxy status: Proxied (orange cloud icon - this is required!)
- Type:
- Click Save
(Optional) Redirect www to Your Root Domain
If you want visitors to
www.yourstore.com to be redirected to yourstore.com, follow these additional steps:Add a DNS Record for www
- In Cloudflare DNS settings, click Add Record
- Configure the record:
- Type:
A - Name:
www - IPv4 address:
192.0.2.0(this is a reserved placeholder IP) - Proxy status: Proxied (orange cloud)
- Type:
- Click Save
Create a Page Rule for the Redirect
- In Cloudflare, go to Rules > Page Rules
- Click Create Page Rule
- Enter the URL pattern:
www.yourstore.com/* - Click Add a Setting and choose:
- Setting: Forwarding URL
- Status code: 301 - Permanent Redirect
- Destination URL:
https://yourstore.com/$1
- Click Save and Deploy Page Rule
Wait for Propagation
DNS changes can take time to propagate across the internet.You can check if your DNS has propagated using tools like dnschecker.org or whatsmydns.net.
DNS propagation typically takes 24-48 hours to complete worldwide, though it often happens much faster. During this time, some visitors may still see the old DNS settings while others see the new ones.
Troubleshooting
| Issue | Solution |
|---|---|
| Domain not working after 48 hours | Verify the CNAME record is correct and proxy is enabled |
| SSL certificate errors | Ensure Cloudflare’s SSL/TLS mode is set to “Full” or “Full (Strict)“ |
| www redirect not working | Check that the Page Rule is active and the A record for www exists |
| Cloudflare shows “Pending” | Your nameservers haven’t propagated yet - wait and check again |