SEF url 404 product error

  • Posts: 344
  • Thank you received: 3
9 years 3 months ago #183810

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6

I think I have found and Hikashop SEF URL related error
Note:This is a fresh Joomla installation

I have following functions enabled
Database Type: MySQLi
Search Engine Friendly URLs: YES
Use URL rewriting: YES

Hikashop
Remove products and categories id in URLs: YES
Alias automatic filling: YES
Activate smaller url: YES
Category SEF name: category
Product SEF name: I want this field to be empty
Force canonical URLs on listings: No, generate the URLs

Now when I create a new product I always get the 404 error siste page when I click on the product in the front-end.

I first thought it was UTF8 mistake related to the URLs sine a often use the letter "Ø". But I get the 404 on all new products I create.

When I set the "Remove products and categories id in URLs" to NO, everything works fine.

But I don't want any ids in the urls. How can we fix this ?

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
9 years 3 months ago #183865

Hi,

It's probably because the alias of the products do not correspond to the alias in the URLs.
Could you give an example of a URL which doesn't work and a screenshot of the settings of the corresponding product ?

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

  • Posts: 344
  • Thank you received: 3
9 years 3 months ago #183891

Hi, tnx for reply

example product url that give 404
www.kvikkimedia.no/stekefolie

Screenshot of the settings of the corresponding product



The settings are still the same as before. I also turned off the cache in the main menu-module.
Note: I have imported over 1000 products from (Joomla 2.5 with Hikashop 2.3.4), some of the products work, and some give 404 error. I always get the 404 error when I create a new product.

Any advice ?

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
9 years 3 months ago #183905

Hi,

You have to use a menu alias in the url and then the product alias, but not directly the product alias because the system is not able to know what to display.
Using a menu is mandatory, it give the informations to display.

So you have to create an hikashop product listing menu, able to list all the products of the shop, this menu can be a hidden one.
If, for example, the alias of the created menu is "p" so the url will be something like:

www.kvikkimedia.no/p/stekefolie

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

  • Posts: 344
  • Thank you received: 3
9 years 3 months ago #183983

Tnx for reply
I did as described above in it works great

One last question

What option would you recommend me to enable under "Force canonical URLs on listings" ..what is best for SEO ?

I don't want any duplicates so I loose Google Pagerank.

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
9 years 3 months ago #184008

Hi,

You don't necessarily need to activate that option, but if you want to avoid duplicates, you need to fill the "canonical URL" field of your products with the URL of each product (a valid one) that you want to be referenced. That process can be painful to do manually if you have a lot of products, which is why the "Use canonical URL and generate it if missing" of the "Force canonical URLs on listings" option can come in handy as if you use it, the system will fill automatically the canonical URL of your products when needed.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum