Delete URL /contact/cid-12

  • Posts: 15
  • Thank you received: 1
4 years 10 months ago #318059

-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.18
-- PHP version -- : 7.3.17
-- Browser(s) name and version -- : All

Hello.
Good afternoon, I wish I could remove this self generated URL: ... product/contact/cid-12
I do not use this url, I am interested in the contact format only on the page of each product.
The URL .... product/contact/cid-12 is crawled by Google and placed in the search results.
Is there a way to remove it?

Please Log in or Create an account to join the conversation.

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 10 months ago #318095

Hi,

You can't remove that URL from your website. That's the URL to access the contact form from the product page.
What you can do however is to ask search engines to not index that URL.
There are two ways to do this:
1. You can edit the file product / show_default.php in the menu Display>Views and change the line:

<a rel="noindex, nofollow" href="<?php echo hikashop_completeLink('product&task=contact&cid=' . (int)$this->element->product_id . $this->url_itemid); ?>" class="<?php echo $css_button; ?>"><?php
to:
<a href="<?php echo hikashop_completeLink('product&task=contact&cid=' . (int)$this->element->product_id . $this->url_itemid); ?>" class="<?php echo $css_button; ?>"><?php
2. You can modify the robots.txt file of your website to forbid all the URLs with produt/contact in them:
webmasters.stackexchange.com/questions/4...txt-disallowing-urls

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 1
4 years 10 months ago #318876

Thank you.
I made the changes and requested reindexing, now I just have to wait for the Google results to be updated.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum