This tutorial will show you how to redirect all of your WWW domain traffic to your non-WWW (naked) domain using a Cloudflare Page Rule.
https://www.example.com301 redirect -->
Navigate to the Rules Tab in Cloudflare
Once you've navigate to the Rules Tab, click
Create Page Rule.
Set the URL Match Value to your WWW Domain
www.example.com we would set the URL Match value to
Add a Forwarding URL Rule to the Settings
Pick a Settingdropdown, select
Then set the
Select status codedropdown to
301 - Permanent Redirect
Next set the
Ender destination URLto
Click 'Save and Deploy' and Test the New Page Rule
Save and Deploy and your rule should be in place.
Now let's test that your WWW subdomain
www.example.com redirects to your non-WWW domain (naked domain) at
Open up your favorite web browser and open the developer tools (I'm using Chrome).
Type your WWW domain,
www.example.cominto your navigation bar.
You should see the 301 redirect in the Network tab of your developer tools:
If you are still having trouble feel free reach out to me on Twitter or check out the additional resources below.