[Skip to main content](#vessel-content)

#   canonical url

##

- **[hamidre13](/forum/user/7305-hamidre13 "View hamidre13's Profile")**
- [![hamidre13's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7305-hamidre13 "View hamidre13's Profile") Topic Author
- [ Offline](/forum/user/7305-hamidre13)

Less More

- Posts: 25
- Thank you received: 0
-
-

13 years 4 months ago [\#108410](#108410) by [hamidre13](/forum/user/7305-hamidre13 "View hamidre13's Profile")  *[canonical url](/forum/3-bug-report/83523-canonical-url#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?")* was created by *[hamidre13](/forum/user/7305-hamidre13 "View hamidre13's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MzUyMy1jYW5vbmljYWwtdXJsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 4 months ago [\#108416](#108416) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[canonical url](/forum/3-bug-report/83523-canonical-url#108416 "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?")*

Hi there,

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

$canonicalUrl = hikashop_cleanURL($this-&gt;element-&gt;product_canonical);

by this one: Code:

$canonicalUrl = $this-&gt;element-&gt;product_canonical;

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MzUyMy1jYW5vbmljYWwtdXJsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.064 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
