We are working on a site for advertising products that you can purchase in another page (is it called aggregator in English?). For improving SEO, we were recommended to do an AMP version of the page. We did two versions of the web, one “standard” version and an AMP version.
Now we want to keep only one version. However, according to the SEO guy, we need to place a link rel="canonical"
on the product page to the original website selling the product. But, according to AMP, we need a link rel="canonical"
pointing to itself. Can I have two link rel="canonical"
or is there any other way of solving this having only one version of the web?
Right now we don’t have this problem because AMP version points to “standard” version and “standard” version points to original website selling the product.
3
Answers
Simply you can no use multiple canonical on same page.
You need to do the following
The AMP documentation => Required markup informs:
Therefore, you must specify in the regular version a link to the amp version,
example:
<link rel="amphtml" href="https://www.example.com/url/to/amp/document.html">
On the amp version, install
<link rel="canonical" href="https://www.example.com/url/to/canonical/document.html">
Again, this is confirmed by the documentation:
I can understand from your question that currently you have two different pages and that you want to keep just one of them, the AMP page. This means the AMP page will not have the corresponding non-AMP page.
In this cases, you have to set the AMP page as its canonical (this means, the AMP page pointing to itself as canonical):
<link rel="canonical" href="url_of_your_amp_page">