canonical url

  • Posts: 25
  • Thank you received: 0
11 years 5 months ago #108410

Hi
I have a website based on hikashop. I have ssl setup on it as well. I entered canonical url for all the products. when I access the site through the the regular http request the canonical url shows the http version of the page but when I access the page through ssl the tag shows the canonical url with ssl. This makes the canonical url useless since the job of this tag is to give crawlers unique url.

My question is how can I fix this so with or without ssl , canonical tag shows the same url?

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

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #108416

Hi there,

You can edit the show.php file in Components/com_hikashop/views/product/tmpl and change this line:

$canonicalUrl = hikashop_cleanURL($this->element->product_canonical);

by this one:
$canonicalUrl = $this->element->product_canonical;

Then you the canonical url set in our product will be the one used without any modification.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum