Question

my domain with www cannot open, while non-www can open. How can I redirect the www to non-www domain

  • Posted July 4, 2014

my domain with www cannot open, while non-www can open. How can I redirect the www to non-www domain (wordpress)

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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?