- Posts: 89
- Thank you received: 2
Duplicate pages without canonical
4 years 3 weeks ago #344277
by Uriel
Duplicate pages without canonical was created by Uriel
-- HikaShop version -- : 4.6.1
-- Joomla version -- : 3.10.10
-- PHP version -- : 7.4.30
-- Browser(s) name and version -- : ALL
-- Error-message(debug-mod must be tuned on) -- : N/A
Hey Hika Team!
I have pulled my Hikashop website into Ahrefs...
It states that I have 1340 Duplicate pages without canonical.
Their explanation is here : help.ahrefs.com/en/articles/2596742-dupl...-error-in-site-audit
The page I see when I look at the Hikashop page are all the pages when a visitor clicks on the "Contact us for more information"
Example : demo.hikashop.com/index.php/en/hikashop/...roduct/contact/cid-4
What can I do about this? Is there some setting in Hikashop I didn't get right?
-- Joomla version -- : 3.10.10
-- PHP version -- : 7.4.30
-- Browser(s) name and version -- : ALL
-- Error-message(debug-mod must be tuned on) -- : N/A
Hey Hika Team!
I have pulled my Hikashop website into Ahrefs...
It states that I have 1340 Duplicate pages without canonical.
Their explanation is here : help.ahrefs.com/en/articles/2596742-dupl...-error-in-site-audit
The page I see when I look at the Hikashop page are all the pages when a visitor clicks on the "Contact us for more information"
Example : demo.hikashop.com/index.php/en/hikashop/...roduct/contact/cid-4
What can I do about this? Is there some setting in Hikashop I didn't get right?
Please Log in or Create an account to join the conversation.
4 years 3 weeks ago #344294
by nicolas
Replied by nicolas on topic Duplicate pages without canonical
Hi,
I'm surprised this tool would flag the contact pages.
If you look at the HTML of the contact us buttons, you can see this:
i.imgur.com/XMFlbfe.png
So HikaShop asks search engines to not follow/index the contact buttons.
And thus the fact that different URLs lead to the same contact form page is irrelevant.
Now, what you can do is add the code:
at the beginning of the view file product / contact in the menu Display>Views.
That way, even if ahrefs ignores the nofollow/noindex on the buttons, it won't complain about the contact form pages.
But it won't change anything for your SEO.
I'm surprised this tool would flag the contact pages.
If you look at the HTML of the contact us buttons, you can see this:
i.imgur.com/XMFlbfe.png
So HikaShop asks search engines to not follow/index the contact buttons.
And thus the fact that different URLs lead to the same contact form page is irrelevant.
Now, what you can do is add the code:
Code:
<?php
$doc = JFactory::getDocument();
$doc->addHeadLink(hikashop_cleanURL(hikashop_completeLink('product&task=contact'.$this->url_itemid)), 'canonical');
?>
That way, even if ahrefs ignores the nofollow/noindex on the buttons, it won't complain about the contact form pages.
But it won't change anything for your SEO.
Please Log in or Create an account to join the conversation.
Time to create page: 0.145 seconds