Today I attempted a search on one of my websites as I thought I had a page about this or that and used the following in my search:
site:m2osw.com upload
I started looking through the results and could not find the very page I was looking for, but noticed that one of my website, we'll say "blah.m2osw.com", appeared in the results!
This was a big surprise to me because that site has had the correct canonical URL for a long time and it points to a different domain. Something like this:
<link rel="canonical"
type="text/html"
title="Home Page"
href="https://exdox.com"/>
I was thinking that whenever you had a canonical it would tell Google to go look over there, but now I have a doubt and am thinking that maybe these canonical do not work cross domain? I thought I read somewhere that was the best way to have a test site anywhere I wanted and point the test site to the real site so Google indexes the real site and not the test site...
Do you know whether that canonical looks correct from https://blah.m2osw.com
or whether I would have to add something else (i.e. the robots = NOINDEX for example...)