Page 1 of 1

DNS issue

Posted: Sun Oct 21, 2018 8:48 am
by elpak
I use Vesta for 10 sites in my profile and they all use the same DNS. When do I search in google site:domain.com I found links from one (1) site in others. Like this https://domain.com and https://w.domain.com. Where is the problem and how can I solve it? When in DNS settings in Vesta am I wrong?

Re: DNS issue

Posted: Sun Oct 21, 2018 3:18 pm
by chrisf
Easiest way is to create an apache rewrite rule to drop 'www' from our site with a 301 permanent. This will stop bots from indexing it.

Don't remove 'www' from DNS. Its the sites FQDN.

Google it, 'apache2 rewrite www' it will have many references :-)