If I input in the URL field (point 6) www.domain.com = when I go to www.domain.com my site is shown, but when I try to go to domain.com is shown the MainSite instead of the created SiteA
vice vers
If I input in the URL field (point 6) domain.com = when I go to domain.com my site is shown, but when I try to go to www.domain.com is shown the MainSite instead of the created SiteA
May be, it is something related to this issue ...for that I yet opened a ticket on tracker without solution at the moment
I think there is some confusion here. A domain name is for example www.mydomain.com but mydomain.com is another domain name such as w.mydomain.com or ww.mydomain.com .
You must have for your website only one main domain (www.mydomain.com) and all other must redirect to the main domain such as mydomain.com must redirect to www.mydomain.com. If not you have duplicated content.
Many thanks for suggestion. I decided to use domain.com as default and I have altered my .htaccess to redirect www.domain.com to domain.com, tested the redirect and it is working. Below is the changes I made to .htaccess: