Domain doesn't work without 'www'

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

Previous topic - Next topic

belveder

Hello,

I have a wiered problem.

Since I moved to CentOS Web Panel, my domain is not working without 'www'. It only works like www.domain.com , but it doesn't open if you type domain.com

Any tips how to solve that through Centos Web Panel?

Sandeep

Redirect non www to www in .htaccess

belveder

Can you show me example for that?

I'm using WordPress website and SMF forum...I tried putting in .htaccess something but it didn't quiet work.

Sandeep

Can u pm the domain or u can post here


Sandeep

Your domain's dns records are not properly setup. Check your name server and dns records.

Sandeep

If you moved to new server with new ip check the server ip in name server (child name server)

belveder

Thank you for your answer.

I'm actually using this server (VPS) from 2012, so it's not a new server.

People can actually access it normally if they type www.juvebalkan.com but they can't if they type only juvebalkan.com

So I was wondering if there is anything I am missing here...

Sandeep

It is name server problem ... Name servers are not correctly configured

belveder

Can I configure that through Centos Web Panel, and if yes, how can I do that so it can work and without www. ?

Thanks!

Sandeep

I'll recommend you to use cloudflare dns or cwp free dns services...

Jae

Quote from: belveder on March 27, 2016, 11:10:06 PM
Can I configure that through Centos Web Panel, and if yes, how can I do that so it can work and without www. ?

Thanks!

yes you can, at least you need two line like this

juvebalkan.com     0   IN   A                 84.200.77.148
www                     0   IN   CNAME        juvebalkan.com




belveder

Thanks Jae.

I added that and restarted named service.

But I'm not quiet sure if it's working now without www

belveder

Actually, it doesn't let me add that at all.

I add that, click Save, and when I open it again, it's not there, it's not saved...Edit file or Edit records, both won't save the changes