Domain doesn't work without 'www'

Started by belveder, March 27, 2016, 06:22:47 PM

Previous topic - Next topic

Sandeep

#30
yes

just add A record and cname record for www
you need to add ns records also


belveder

Do I edit existing DNS zone, or create new one, or...?

Sandeep

#32
delete all dns records and create new one :-

A
Cname
MX
NS

A record will be non www and should point to server ip address

eg.
A    domain.com    192.168.0.1
cname    www   domain.com

belveder

So you are saying following:

- I should delete DNS zone for www.juvebalkan.com

- Create new DNS zone for juvebalkan.com  with the same IP address

And everything will work ok?

Sandeep

yes .... after that create a .htaccess file to redirect non www to www and edit the domain url setting in WordPress admin settings. to www.domain.com

belveder

Can moderator or administrator confirm this should work?

I already have WordPress redirecting to www. anyway, and htaccess lines also

(because only www.juvebalkan.com works, juvebalkan.com doesn't opet anything, doesn't resolve)

Sandeep

#36
you dns record should be non www to redirect to www ... if your existing record is for www.domain.com then how it will redirect non www. to www

belveder

But what about website files and databases, since they are created to be on www.juvebalkan.com ? Will they remain there and will juvebalkan.com load them properly from they same position on the server as they are now?

Sandeep

 htaccess script will do the trick by redirecting non www to www.

files and databases will be safe.

blakilox

Hi re-direction will of course work though none of these seem to be good solutions it seems by Default CWP will assume your preference is for www.mydomain.com to me www is just completely unnecessary so how would one Configure CWP so that when new user accounts are added the "mydomain.tld" will work to account/public_html/index.html

it seems the extra step of adding the .htaccess redirection is needed every account
Thanks, Garry, Central Australia

sundar rajamani

Quote from: Sandeep on March 29, 2016, 02:09:58 PM
delete all dns records and create new one :-

A
Cname
MX
NS

A record will be non www and should point to server ip address

eg.
A    domain.com    192.168.0.1
cname    www   domain.com

My domain is s4hosting.in hostname is cwp.s4hosting.in using cloudflare ns records dns records are looking fine http://leafdns.com/index.cgi?testid=196F7599 but still i couldnt renew letsencrypt ssl every time getting www or without ww error can u pls help in this......