-1

In Search Console I have it as "don't set preferred domain."

What could be causing this?

unor
  • 92,415
  • 26
  • 211
  • 360
Luc Alex
  • 11
  • 1

1 Answers1

-1

You should check your HTTP headers. If www.example.com gives 404 not found error, Google will not index that subdomain.

To make sure you have both version idexed and also avoiding duplication of content, try to add this to your .htaccess:

RewriteEngine on
# Redirect non-www to wwww
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.org [NC]
RewriteRule ^(.*)$ http://www.yourdomain.org/$1 [R=301,L]
unor
  • 92,415
  • 26
  • 211
  • 360
Tropicalista
  • 3,097
  • 12
  • 44
  • 72