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

#   Canonical URL not SEF

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

10 years 3 months ago [\#246928](#246928) by [summerdove](/forum/user/43924-summerdove "View summerdove's Profile")  *[Canonical URL not SEF](/forum/25-install-update/885863-canonical-url-not-sef#246928 "-- HikaShop version -- : 2.6.3  I pointed the Canonical URL of one category with raw link like &quot;index.php?Itemid=XX&quot;, the URL of category shows &quot;index.php?Itemid=XX&quot;, not the SEF URLs, while I hit the items of this category, the URLs changed to SEF URLs, no &quot;index.php?Itemid=XX&quot; any more.  Shouldn't the Joomla plugin 'System - SEF' will auto-convert such links to correct URLs ALWAYS which will reflect current menu item alias?  What should I do if I want the SEF URLs for the category too? please don't tell me to enter the SEFed URLs directly to the canonical URL, it will not fit my needs.")* was created by *[summerdove](/forum/user/43924-summerdove "View summerdove's Profile")*

-- HikaShop version -- : 2.6.3

I pointed the Canonical URL of one category with raw link like "index.php?Itemid=XX", the URL of category shows "index.php?Itemid=XX", not the SEF URLs, while I hit the items of this category, the URLs changed to SEF URLs, no "index.php?Itemid=XX" any more.

Shouldn't the Joomla plugin 'System - SEF' will auto-convert such links to correct URLs ALWAYS which will reflect current menu item alias?

What should I do if I want the SEF URLs for the category too? please don't tell me to enter the SEFed URLs directly to the canonical URL, it will not fit my needs.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 3 months ago [\#246936](#246936) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical URL not SEF](/forum/25-install-update/885863-canonical-url-not-sef#246936 "-- HikaShop version -- : 2.6.3  I pointed the Canonical URL of one category with raw link like &quot;index.php?Itemid=XX&quot;, the URL of category shows &quot;index.php?Itemid=XX&quot;, not the SEF URLs, while I hit the items of this category, the URLs changed to SEF URLs, no &quot;index.php?Itemid=XX&quot; any more.  Shouldn't the Joomla plugin 'System - SEF' will auto-convert such links to correct URLs ALWAYS which will reflect current menu item alias?  What should I do if I want the SEF URLs for the category too? please don't tell me to enter the SEFed URLs directly to the canonical URL, it will not fit my needs.")*

Hi,

So your issue is with the SEF plugin of Joomla not HikaShop.
Yes, it is supposed to replace the URLs automatically to SEF URLs.
You can see that in its code:
[ take.ms/7amXb](http://take.ms/7amXb)
So when the page is at the end of the processing, it gets all the URLs starting with index.php in the href attributes of the page and SEF them with the call to JRoute::_
This also requires that the SEF setting of the Joomla configuration is activated as you can read in the code.

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

10 years 3 months ago [\#247005](#247005) by [summerdove](/forum/user/43924-summerdove "View summerdove's Profile")  Replied by *[summerdove](/forum/user/43924-summerdove "View summerdove's Profile")* on topic *[Canonical URL not SEF](/forum/25-install-update/885863-canonical-url-not-sef#247005 "-- HikaShop version -- : 2.6.3  I pointed the Canonical URL of one category with raw link like &quot;index.php?Itemid=XX&quot;, the URL of category shows &quot;index.php?Itemid=XX&quot;, not the SEF URLs, while I hit the items of this category, the URLs changed to SEF URLs, no &quot;index.php?Itemid=XX&quot; any more.  Shouldn't the Joomla plugin 'System - SEF' will auto-convert such links to correct URLs ALWAYS which will reflect current menu item alias?  What should I do if I want the SEF URLs for the category too? please don't tell me to enter the SEFed URLs directly to the canonical URL, it will not fit my needs.")*

Nope, my problem is with Hikashop.

I entered the Canonical URL with "index.php?Itemid=216", because I want to use the raw link here, the SEF URLs changes with the alias, so I don't want to use it here.

But in the front of website, it shows "[ www.mydomain.com/index.php?Itemid=216](http://www.mydomain.com/index.php?Itemid=216)", should not it change to SEF URL automatically? the SEF plugin of Joomla is activated.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 3 months ago [\#247014](#247014) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical URL not SEF](/forum/25-install-update/885863-canonical-url-not-sef#247014 "-- HikaShop version -- : 2.6.3  I pointed the Canonical URL of one category with raw link like &quot;index.php?Itemid=XX&quot;, the URL of category shows &quot;index.php?Itemid=XX&quot;, not the SEF URLs, while I hit the items of this category, the URLs changed to SEF URLs, no &quot;index.php?Itemid=XX&quot; any more.  Shouldn't the Joomla plugin 'System - SEF' will auto-convert such links to correct URLs ALWAYS which will reflect current menu item alias?  What should I do if I want the SEF URLs for the category too? please don't tell me to enter the SEFed URLs directly to the canonical URL, it will not fit my needs.")*

Hi,

If you enter "index.php?Itemid=216" in the canonical URL field, HikaShop will display [ www.mydomain.com/index.php?Itemid=216](http://www.mydomain.com/index.php?Itemid=216) as the URL of the product/category. And as you said, the SEF plugin will convert that URL to the SEF URL of the menu item 216. If that's not the case and you see [ www.mydomain.com/index.php?Itemid=216](http://www.mydomain.com/index.php?Itemid=216), it means that the SEF plugin is not doing its job but HikaShop is since it is using your canonical URL but the SEF plugin is not SEFing it.
So I don't see why you would think that the problem is with HikaShop here ?

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

10 years 3 months ago [\#247067](#247067) by [summerdove](/forum/user/43924-summerdove "View summerdove's Profile")  Replied by *[summerdove](/forum/user/43924-summerdove "View summerdove's Profile")* on topic *[Canonical URL not SEF](/forum/25-install-update/885863-canonical-url-not-sef#247067 "-- HikaShop version -- : 2.6.3  I pointed the Canonical URL of one category with raw link like &quot;index.php?Itemid=XX&quot;, the URL of category shows &quot;index.php?Itemid=XX&quot;, not the SEF URLs, while I hit the items of this category, the URLs changed to SEF URLs, no &quot;index.php?Itemid=XX&quot; any more.  Shouldn't the Joomla plugin 'System - SEF' will auto-convert such links to correct URLs ALWAYS which will reflect current menu item alias?  What should I do if I want the SEF URLs for the category too? please don't tell me to enter the SEFed URLs directly to the canonical URL, it will not fit my needs.")*

I'm not arguing whose responsibility is.

I didn't want to use SEF URL in the canonical URL field, because I may need to move the website from one domain to another, or change the menu alias sometimes.

Is there any other solution except the "index.php?Itemid=XXX" way?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 3 months ago [\#247073](#247073) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical URL not SEF](/forum/25-install-update/885863-canonical-url-not-sef#247073 "-- HikaShop version -- : 2.6.3  I pointed the Canonical URL of one category with raw link like &quot;index.php?Itemid=XX&quot;, the URL of category shows &quot;index.php?Itemid=XX&quot;, not the SEF URLs, while I hit the items of this category, the URLs changed to SEF URLs, no &quot;index.php?Itemid=XX&quot; any more.  Shouldn't the Joomla plugin 'System - SEF' will auto-convert such links to correct URLs ALWAYS which will reflect current menu item alias?  What should I do if I want the SEF URLs for the category too? please don't tell me to enter the SEFed URLs directly to the canonical URL, it will not fit my needs.")*

Hi,

Moving the website from one domain to another won't change anything for the canonical URLs since you don't enter the domain name in that setting. It is added dynamically.
And if you enter the URL with the Itemid, the SEF URL will be calculated automatically by Joomla's SEF plugin so you could change the menu alias.

Now if you leave the canonical URL empty, HikaShop will calculate itself the SEF URL of the category. So if your goal is to have a completely dynamic URL without having to enter a canonical URL, that's also possible.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg4NTg2My1jYW5vbmljYWwtdXJsLW5vdC1zZWY/dG1wbD1tYXJrZG93bg==) 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.056 seconds

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