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 2.2k views

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.

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

Submit an Answer