Custom Filter Redirect www to NON WWW Not working

What is the name of the domain?

What is the error number?

301 redirect not working

What is the issue you’re encountering

I setup a custom filter for all www.bartoliconsulting.com/* to redirect to NON www, however its not working

What steps have you taken to resolve the issue?

I made sure all DNS is proxied, can’t seem to figure out what else is missing

What are the steps to reproduce the issue?

visit https://www.bartoliconsulting.com - Should 301 to https://bartoliconsulting.com

Screenshot of the error

The best case is if you want to match anything after / (including the cases such as with www.bartoliconsulting.com/test/, www.bartoliconsulting.com/abc123, www.bartoliconsulting.com/abcdef?param=123 and more) and redirect to the same without www (so they end up to bartoliconsulting.com/test/, bartoliconsulting.com/abc123, bartoliconsulting.com/abcdef?param=123 and more), then Wildcard instead of Equals should fix your issue as follows on the example from below with more examples and information.

At first, make sure you do have both DNS records A bartoliconsulting.com and A www (or CNAME in some cases) proxied :orange: under the DNS tab of Cloudflare dashboard for your Website to make this work.

To redirect www to non-www follow the instructions from here:

Other helpful article:

4 Likes

Hey thanks so much! That worked! Appreciate this

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.