Redirect www to Non-www website

I have wordpress website with a url - domain.com.
When I visit www.domain.com it says site cant be reached.

I want to redirect all www. to non-www .
How can I so that?

@GulshanKumar

1 Like

Which hosting do you use?

Accordingly, point www to non-www record.

CNAME - www - example.com 

or

A - www - Host IP

Interserver. Im using Cloudflare and Bunny CDN

Okay, good. You can redirect via Cloudflare as well.

CNAME - www - example.com - :orange:

Add a page rule

From *www.example.com/*

To https://example.com/$2

$2? should be forwarding url right?

Yes that is for the final landing path.

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