I have a web site www.example.com and the relative mobile version in m.example.com and now I have the AMP version in amp.example.com.
From www.example.com I have redirect to m.example.it for mobile device and I use for AMP page:
<link rel="amphtml" …
From m.example.com I have only canonical tag to desktop version.
From amp.example.com I have only canonical tag to desktop version.
It’s ok?
I need to link AMP version from m.example.com too?
After 3 weeks Google Search Console found the AMP page, the AMP page are in Google cache, but I don’t ever see my AMP page in search result (I’m in Google News) and I don’t count traffic.
Do you think is all configured correctly?
2
Answers
You’ll need
<link rel="amphtml" href="#amp page url#">
on both the mobile and desktop pages (“On any non-AMP page, reference the AMP version of the page” – source).Unrelated to AMP but necessary for proper indexing of separate mobile content in Google, from desktop pages you’ll need
<link rel="alternate" href="m.example.com/mobile-version/">
– so there’s a bi-directionalrel="canonical"
andrel="alternate"
between mobile and desktop versions of content.You should also serve a
Vary: User-Agent
HTTP header (although there are reports of this causing issues with CDNs, which you should look into if applicable).actually it doesn’t say “any non-AMP page” but “we add information about the AMP page to the non-AMP page and vice versa”
furthermore John Mueller explained it a little more here:
https://productforums.google.com/forum/#!topic/webmasters/fFQJC2m0OHs