Can't access website without WWW
Posted: 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:
I can access Example.com but I cannot access http://www.Example.com
I tried to use .htaccess
but it did not work
can someone please help?
thanks
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 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]
can someone please help?
thanks