SEO urls problem

  • Posts: 23
  • Thank you received: 0
9 years 11 months ago #209755

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4

Hi,

i created the main part of my website with SEO turned off in the joonla settings.
When i was almost finished i turned it on and imported some new products.
Those newly created products resulted in a 404 error. So i turned the SEO option off again.
Now everything works except:
1) The newly added products still have SEO urls, all old products have the standard joomla urls. But both work.
2) when using the joomla search the newly created products have the SEO urls with "?option=com_search&Itemid=9999" appended at the end. Which of course doesn't work at all.

So how can i trigger to recreate the SEO urls of products?

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

  • Posts: 26255
  • Thank you received: 4041
  • MODERATOR
9 years 11 months ago #209756

Hi,

Please check your SEF settings in HikaShop.
www.hikashop.com/support/support/documen...ig.html#features_sef

If you're providing/generating wrong canonical URL and you force HikaShop to use that URL ; it will result a lot of 404 pages.
At this moment I'll recommend you to clean your canonical url or do not activate the setting to force it.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 23
  • Thank you received: 0
9 years 11 months ago #209794

ok, now i've set "Force canonical URLs on listings" to "No, generate the URLs"
The shop frontend now works again as expected.

But the issue with the search-result (from com_search) are still using the wrong SEF url (with "?option=com_search&Itemid=9999" appended)

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

  • Posts: 84049
  • Thank you received: 13624
  • MODERATOR
9 years 11 months ago #209803

Hi,

That's probably because in the "itemid" setting of the HikaShop products search plugin, you entered the id 9999 instead of the id of a HikaShop products listing menu item. So please check that setting.

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

  • Posts: 23
  • Thank you received: 0
9 years 11 months ago #210085

I've checked that. I didn't specify (empty) an ItemId in the settings of the search module.
So i checked the template overrides and there was one available so i temporarily disabled it. And even with Joomla's 'original' search module the problem exists and behaves the same.

The hikashop search plugin returns a SEF url and appends some additionally parameters. The urls are fine for all other products.
When "?option=com_search&Itemid=9999" gets appended the user is redirected to the search component instead of com_hikashop. I also removed the ItemId from the code to check, but then the currents page ItemId is taken instead, so no change.

There is just something wrong with the URLs generated for the newly imported products while SEO was enabled in the joomla settings.

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

  • Posts: 84049
  • Thank you received: 13624
  • MODERATOR
9 years 11 months ago #210094

Hi,

As I said, you need to enter the id of a menu item of the type HikaShop products listing in the Itemid setting of the plugin.
Try that and that should hopefully help.

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

  • Posts: 23
  • Thank you received: 0
9 years 11 months ago #210243

specifying the itemid in the hikashop search plugin only affects the already working products - the ones where not the SEO url is generated.
The non working ones are unaffected.

Since we have ~22.000 products listed in the shop i didn't notice that there are also older imported products which do not work.
So whats taken into account for creating the SEO url? Why are still SEO urls generated when SEO is disabled?!

Last edit: 9 years 11 months ago by raven-worx.

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

  • Posts: 84049
  • Thank you received: 13624
  • MODERATOR
9 years 11 months ago #210248

If you don't see any change in the URL of some of the products, it probably means that you have a URL set in the "canonical URL" field of the product and the system is using that URL instead of generating one.
So make sure that this canonical URL is correct.

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

  • Posts: 23
  • Thank you received: 0
9 years 11 months ago #210454

yes, it seems that was the issue.
There were about 80 products with a canonical url specified. But how it comes? I never entered any value there?
Is it autoamtically filled when SEO is enabled and the product is viewed (in the frontend)?

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

  • Posts: 84049
  • Thank you received: 13624
  • MODERATOR
9 years 11 months ago #210477

Hi,

It is automatically filled if you have the "force canonical URL on listing" setting set to "Use canonical URL and generate it if missing" in the HikaShop configuration and that it is empty, which is not the case by default.
That way, the link to the product page will always be the same.
But if later on you change the menu structure of your website, the link there might be incorrect and thus you'll have to empty the canonical URL field of the products again.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum