SEF urls

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
13 years 5 months ago #20013

First, you could update HikaShop to 1.5.2. We improved the SEF URLs already. If you need even shorter URLs and that you don't want to use the redirect tool of joomla, you will have to edit the file components/com_hikashop/router.php and change the code there.

I must say that I didn't use the URL redirect tool of joomla much so far so I wouldn't be able to help much on that end...

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

  • Posts: 321
  • Thank you received: 17
  • Hikashop Business
12 years 11 months ago #33006

Real SEF urls with Hika is impossible. Url www.domain.com/shop/product/1-product-name/category_pathway-12 (that is best what you can get) is far from SEF and SEO.
Sef url is esential for any web site.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 11 months ago #33013

In new versions of HikaShop you can remove the shop/product page in the URL.
The category_pathway part is only displayed in some cases and is needed for breadcrumbs in these cases.

So you can have URLs like that:
www.domain.com/1-product-name

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

  • Posts: 24
  • Thank you received: 0
12 years 10 months ago #35153

How would I do this exactly?
Thanks.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #35239

The shop part comes from the alias of the current joomla menu.
The product part comes from the option "Product SEF name" in the Main tab of the configuration of HikaShop. It will be displayed when the option "Activate smaller url" is turned on.

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

  • Posts: 24
  • Thank you received: 0
12 years 10 months ago #35395

Thanks. Here's what I have so far...
mywebsite.com/index.php/en/cart/product/1-m409834p-coilsteam-rh-150170-pkg/category_pathway-13
I have "Activate smaller url" turned on and I have
Category SEF name as category and
Product SEF name as product
I want to have this show instead mywebsite.com/1-m409834p
I'm lost on what to do next.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #35437

As I said, the product part comes from the option "Product SEF name". If you empty it, it won't display it.
The cart part comes from the your menu alias. You should change the alias of your menu to change it.
The 1-m409834p-coilsteam-rh-150170-pkg part is the id and name of your product.
If you want to shorten it, you should shorten the name of the product.
For the category_pathway-13 part is only displayed in some cases and is needed for breadcrumbs. If you don't want it, you will have to edit the file components/com_hikashop/router.php and add code like that:
if(isset($query)) unset( $query );

before the line:
if(isset($query) && isset($query)){

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

Time to create page: 0.074 seconds
Powered by Kunena Forum