my domain with www cannot open, while non-www can open. How can I redirect the www to non-www domain (wordpress)
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
You could add two “A” DNS Records from the DNS Panel
First record: @ <your_droplet_address>
Second record. www <your_droplet_address>
Regards
Hello! Enters DNS panel and adds 3 CNAMEs:
Name: www Hostname: domain.com. (add dot to end)
Name: * Hostname: @
Name: *. api Hostname: api.domain.com (add dot to end)
Worked for me, I have helped.
What webserver do you use? nginx? apache?