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

#   Howto short SEF urls (no cat or product)

##

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

Less More

- Posts: 43
- Thank you received: 3
-
-

8 years 1 day ago [\#300443](#300443) by [eskimoroll](/forum/user/9945-eskimoroll "View eskimoroll's Profile")  *[Howto short SEF urls (no cat or product)](/forum/26-product-category-display/896216-howto-short-sef-urls-no-cat-or-product#300443 "-- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.9.0 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome/firefox  Hello I have a multi-language site (en,fr) and would like to create really short urls to products:  french: domain.com/product&#95;name english: domain.com/en/product&#95;name  I have gone through ++posts explaining how to add/remove the category and product parts of the url (even generating if not there etc.)...but I have found nothing which lets me exclude both the category &amp; product.  I have tried adding the canonical url in the product, ex: /product&#95;name1 But this gives me a 404:   domain.com/product&#95;name1  In HS settings I have toggled Force Canonical urls with &quot;Use Canonical URL and generate if missing&quot;  Do I need a SEO plugin in order to achieve those short urls?  Thanks")* was created by *[eskimoroll](/forum/user/9945-eskimoroll "View eskimoroll's Profile")*

-- HikaShop version -- : 4.0.0
-- Joomla version -- : 3.9.0
-- PHP version -- : 7.2
-- Browser(s) name and version -- : chrome/firefox

Hello I have a multi-language site (en,fr) and would like to create really short urls to products:

french: domain.com/product_name
english: domain.com/en/product_name

I have gone through ++posts explaining how to add/remove the category and product parts of the url (even generating if not there etc.)...but I have found nothing which lets me exclude both the category &amp; product.

I have tried adding the canonical url in the product, ex: /product_name1
But this gives me a 404: [ domain.com/product\_name1](http://domain.com/product_name1)

In HS settings I have toggled Force Canonical urls with "Use Canonical URL and generate if missing"

Do I need a SEO plugin in order to achieve those short urls?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTYyMTYtaG93dG8tc2hvcnQtc2VmLXVybHMtbm8tY2F0LW9yLXByb2R1Y3Q/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

8 years 15 hours ago [\#300450](#300450) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Howto short SEF urls (no cat or product)](/forum/26-product-category-display/896216-howto-short-sef-urls-no-cat-or-product#300450 "-- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.9.0 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome/firefox  Hello I have a multi-language site (en,fr) and would like to create really short urls to products:  french: domain.com/product&#95;name english: domain.com/en/product&#95;name  I have gone through ++posts explaining how to add/remove the category and product parts of the url (even generating if not there etc.)...but I have found nothing which lets me exclude both the category &amp; product.  I have tried adding the canonical url in the product, ex: /product&#95;name1 But this gives me a 404:   domain.com/product&#95;name1  In HS settings I have toggled Force Canonical urls with &quot;Use Canonical URL and generate if missing&quot;  Do I need a SEO plugin in order to achieve those short urls?  Thanks")*

Hi,

If you want to achieve such short URLs for both categories and products, yes, you need a SEF plugin which handle SEF aliases like does sh404SEF.
You can achieve URLs like [ domain.com/product\_name1](http://domain.com/product_name1)
However, this requires that the home page menu item of your website is a category or products listing menu item, and it requires the "product SEF name" to be empty, which will lead to the category SEF name not being empty.
That's because HikaShop's router has no caching.
It has to analyse the URL elements to be able to route the request to the correct controller.
SEF plugins which allow you to use whatever URL you want don't work like that. They need to store the correspondance between the URL that is dynamically generated and the URL that you want so that when the router of the SEF plugin has to do the conversion on the other way, it can look up into that cache.
While this gives a lot of flexibility, this also create issues because when the URL displayed has been removed from the cache (because the cache was purged for x reasons), you end up with invalid URLs and the cache has to be rebuilt.
And usually, such SEF caching mechanism is implemented at the website level and thus is outside the scope of what an extension routing system is supposed to handle and why you can't have whatever URL you want for whatever page of your website (with HikaShop, but with basically any other extension) unless you use such SEF extension.

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

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

Less More

- Posts: 43
- Thank you received: 3
-
-

7 years 11 months ago [\#301072](#301072) by [eskimoroll](/forum/user/9945-eskimoroll "View eskimoroll's Profile")  Replied by *[eskimoroll](/forum/user/9945-eskimoroll "View eskimoroll's Profile")* on topic *[Howto short SEF urls (no cat or product)](/forum/26-product-category-display/896216-howto-short-sef-urls-no-cat-or-product#301072 "-- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.9.0 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome/firefox  Hello I have a multi-language site (en,fr) and would like to create really short urls to products:  french: domain.com/product&#95;name english: domain.com/en/product&#95;name  I have gone through ++posts explaining how to add/remove the category and product parts of the url (even generating if not there etc.)...but I have found nothing which lets me exclude both the category &amp; product.  I have tried adding the canonical url in the product, ex: /product&#95;name1 But this gives me a 404:   domain.com/product&#95;name1  In HS settings I have toggled Force Canonical urls with &quot;Use Canonical URL and generate if missing&quot;  Do I need a SEO plugin in order to achieve those short urls?  Thanks")*

Ok Nicolas, ty.

I did try setting up JoomSef but it was difficult to get Joomla, Falang, Hika and Joomsef to play together. Nothing I tried would allow me to have those short, sexy urls.

But I did find a way to have a valid (technical solution):
I deleted all canonical urls
I switched to Use Canonical and Generate if missing.
(note: If I leave it at this...my submenus all point to bad links)
I went to the front end and displayed ALL products (generating the canonical urls)
Then I switched to "No, Generate the URLs".

...so now the canonical urls are valid (I tested them)...and I have no bad links. All works except the short urls (which is not a show stopper).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTYyMTYtaG93dG8tc2hvcnQtc2VmLXVybHMtbm8tY2F0LW9yLXByb2R1Y3Q/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

7 years 11 months ago [\#301082](#301082) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Howto short SEF urls (no cat or product)](/forum/26-product-category-display/896216-howto-short-sef-urls-no-cat-or-product#301082 "-- HikaShop version -- : 4.0.0 -- Joomla version -- : 3.9.0 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome/firefox  Hello I have a multi-language site (en,fr) and would like to create really short urls to products:  french: domain.com/product&#95;name english: domain.com/en/product&#95;name  I have gone through ++posts explaining how to add/remove the category and product parts of the url (even generating if not there etc.)...but I have found nothing which lets me exclude both the category &amp; product.  I have tried adding the canonical url in the product, ex: /product&#95;name1 But this gives me a 404:   domain.com/product&#95;name1  In HS settings I have toggled Force Canonical urls with &quot;Use Canonical URL and generate if missing&quot;  Do I need a SEO plugin in order to achieve those short urls?  Thanks")*

Hi,

Yes, your steps are a good way to clean the invalid canonical URLs and avoid issues with 404 routing errors.
Then, to have shorter URLs, you would need a SEF alias system and add the URLs manually.
I'm not familiar with JoomSef so I wouldn't be able to say if that extension can do that, or even how as I've never used it.
Maybe they could help you set that up in the future to improve the URLs for your SEO.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTYyMTYtaG93dG8tc2hvcnQtc2VmLXVybHMtbm8tY2F0LW9yLXByb2R1Y3Q/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.082 seconds

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