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

July 4, 2014 1.1k views

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

3 Answers

What webserver do you use? nginx? apache?

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.

You could add two "A" DNS Records from the DNS Panel

First record:
@ <your_droplet_address>

Second record.
www <your_droplet_address>

Regards

Have another answer? Share your knowledge.