Page Rule to Redirect example.com to www.example.com

I followed the instructions in the community tutorial about redirecting example.com to www.example.com when using Cloudflare.

It doesn’t work. Is there another way to do this?

That tutorial has it right. What’s the domain you’re trying this on?

Any error message?

Do you have other page rules apart from this?

Oh? You have a Workers route? If you’ve assigned your Worker route to example.com/*, that will trigger before the Redirect Page Rule.

1 Like

Thanks. I was using *example.com/* and had to change to *.example.com/* and it worked.

1 Like

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