Hi guys ( not even sure this is the correct forum so if this needs moving mods then please do :) ).
Recently moved all my sites to a VPS, all the sites are fine, but when I do a check to see what other sites are hosted on this IP it shows one site as;
domain.com
www.domain.com
Where as all the other sites just show www.domain.com. Ive set the canonical url on all pages as www. The site is Wordpress driven
Now ive checked all DNS settings on all sites to compare and they all have the correct a records, cnames etc. So im at a loss. The only thing that im not 100% on as im no apache expert is the rewrites. I want all non www to go to www.
This is the directives ive set in apache.
DocumentRoot "/var/www/domain.com/public_html"
<Directory "/var/www/domain.com/public_html">
Options FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^http://domain.com$ [NC]
RewriteRule ^(.*)$http://www.domain.com/$1 [R=301,L]
Options +Indexes
</Directory>
Are they fine and I still have to find what is causing this?