Author Topic: Domain doesn't work without 'www'  (Read 59026 times)

0 Members and 1 Guest are viewing this topic.

Offline
*****
Re: Domain doesn't work without 'www'
« Reply #30 on: March 29, 2016, 01:22:28 PM »
yes

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

« Last Edit: March 29, 2016, 01:26:33 PM by Sandeep »

Offline
*
Re: Domain doesn't work without 'www'
« Reply #31 on: March 29, 2016, 02:06:31 PM »
Do I edit existing DNS zone, or create new one, or...?

Offline
*****
Re: Domain doesn't work without 'www'
« Reply #32 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
« Last Edit: March 29, 2016, 02:11:57 PM by Sandeep »

Offline
*
Re: Domain doesn't work without 'www'
« Reply #33 on: March 29, 2016, 02:14:23 PM »
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?

Offline
*****
Re: Domain doesn't work without 'www'
« Reply #34 on: March 29, 2016, 02:18:17 PM »
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

Offline
*
Re: Domain doesn't work without 'www'
« Reply #35 on: March 29, 2016, 02:20:34 PM »
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)

Offline
*****
Re: Domain doesn't work without 'www'
« Reply #36 on: March 29, 2016, 02:22:50 PM »
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
« Last Edit: March 29, 2016, 02:24:30 PM by Sandeep »

Offline
*
Re: Domain doesn't work without 'www'
« Reply #37 on: March 29, 2016, 02:32:26 PM »
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?

Offline
*****
Re: Domain doesn't work without 'www'
« Reply #38 on: March 29, 2016, 02:35:30 PM »
 htaccess script will do the trick by redirecting non www to www.

files and databases will be safe.

Offline
*
Re: Domain doesn't work without 'www'
« Reply #39 on: June 15, 2018, 06:40:16 AM »
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

Offline
*
Re: Domain doesn't work without 'www'
« Reply #40 on: December 12, 2021, 03:12:53 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......