Hi,
Get issue with magento 1.9. I put this:
<link rel="canonical" href="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?> "/>
in
app/design/frontend/base/default/template/page/html/head.phtml:35
So website now get canonical URL
Everythings seems fine but i got this issue:
On all pages that ends in .html (like contact, or product) i get double canonical in the code.
here is one of pages with issue:
Sorry, have just solved it by myself.
If someone need the solution:
U must just go to Config - > Catalog - SEO and desactivade this two options:
Use Canonical Link Meta Tag For Categories
Use Canonical Link Meta Tag For Products
This solved my problem
@avetikarmndf4b wrote:Hi,
Get issue with magento 1.9. I put this:
<link rel="canonical" href="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?> "/>
in
app/design/frontend/base/default/template/page/html/head.phtml:35
So website now get canonical URL
Everythings seems fine but i got this issue:
On all pages that ends in .html (like contact, or product) i get double canonical in the code.
here is one of pages with issue:
https://www.armnet.es/es/contactar.html
To fix the issue of duplicated canonical links in Magento 1.9 pages ending with ".html," review the code in the template file where the canonical link is being generated. You may be inadvertently adding the canonical tag twice. Try checking for another instance of the canonical tag in the same template file or related layout XML files. Additionally, verify that no third-party extensions are causing this duplication. This issue is common when multiple methods are used to add canonical URLs in Magento. Consider Zoro tv for related shows content.