Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section DNS Server
  • Search

Can't access website without WWW

Questions regarding the DNS Server
BIND
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
jimmy
Posts: 25
Joined: Thu May 15, 2014 6:51 am

Can't access website without WWW
  • Quote

Post by jimmy » Thu May 15, 2014 6:57 am

I am not sure if this is the right place to ask this question
I installed VestaCP on a VPS by Digital Ocean
I tried to add a website (Example.com) using the VestaCP - configured the nameservers as follow:

Code: Select all

Name Server: NS1.DIGITALOCEAN.COM
Name Server: NS2.DIGITALOCEAN.COM
Name Server: NS3.DIGITALOCEAN.COM
I can access Example.com but I cannot access http://www.Example.com
I tried to use .htaccess

Code: Select all

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.Example.com [NC]
RewriteRule ^(.*)$ http://Example.com/$1 [L,R=301]
but it did not work

can someone please help?
thanks
Top

SCelik

Re: Can't access website without WWW
  • Quote

Post by SCelik » Thu May 15, 2014 7:38 pm

Do you have an A record or CNAME record for www on digital ocean dns?
Top

jimmy
Posts: 25
Joined: Thu May 15, 2014 6:51 am

Re: Can't access website without WWW
  • Quote

Post by jimmy » Fri May 16, 2014 12:35 am

SCelik wrote:Do you have an A record or CNAME record for www on digital ocean dns?
so add a CNAME record for the same domain? (under add records?)
I used to be on a shared hosting and all I did was changing the name servers on the domain provider and used .htaccess file to redirect domains
Top

ivanh
Posts: 41
Joined: Sun Mar 23, 2014 6:40 am

Re: Can't access website without WWW
  • Quote

Post by ivanh » Fri May 16, 2014 4:25 pm

create a cname entry: www and set the value to yourdomain.tld
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “DNS Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password