Question

when i log to my domain without www it work,when with www.xxxxxx.com it doesn't ??

Posted August 20, 2014 12.4k views

(one click wordpress)

<VirtualHost *:80>
   ServerAdmin webmaster@xxxxxxx.com
   DocumentRoot /var/www
   Servername xxxxxxxx.com
   ServerAlias www.xxxxxx.com
 </VirtualHost>

inside wordpress settings : Site Address (URL),WordPress Address (URL)
http://xxxxxxxxxx.com

1 comment

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.

×
7 answers

If you had posted your domain name I could have verified that this is the case, however it sounds like you don’t have a www DNS record on your domain. Add a www DNS record.

i was edit like this inside dns

A -www.drive4media.com - 104.131.52.229

Domain Name: DRIVE4MEDIA.COM
Registrar: ENOM, INC.
Whois Server: whois.enom.com
Referral URL: http://www.enom.com
Name Server: NS1.DIGITALOCEAN.COM
Name Server: NS2.DIGITALOCEAN.COM
Name Server: NS3.DIGITALOCEAN.COM
Status: ok
Updated Date: 19-aug-2014
Creation Date: 16-aug-2014
Expiration Date: 16-aug-2015

You’re DNS record should just have the subdomain, not the whole domain. You can also use a CNAME:

Record Name Target
CNAME www @

Checkout: How To Set Up and Test DNS Subdomains with DigitalOcean’s DNS Panel

Submit an Answer