webmaster.google.com: many http 404 / not found errors are reported

  • Posts: 35
  • Thank you received: 3
7 years 5 months ago #272690

-- url of the page with the problem -- : shop.smartgart.com
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7
-- PHP version -- : 5.5
-- Browser(s) name and version -- : Chrome latest
-- Error-message(debug-mod must be tuned on) -- : http 404 not found

Hi, I have changed a few things on shop.smartgart.com a while ago, and now I see that webmaster.google.com reports that around 600 pages are no longer found.
Those pages have URL suffixes like zh/product/3652-.html or en/product/2928-.html.
My understanding is that if those numbers 3652 or 2928 were product_id's, then that link would work - but they are not, and they are not category_id's either. So somehow I must have mislead googlebot.

Question 1:
What type of id could they be, or how can I find where those links are generated in the 1st place?
They are (of course) not part of the shop.smartgart.com/sitemap-google.xml.
Doing a search for e. g. link:shop.smartgart.com/zh/product/3652-.html does no longer work for Google to find out about link sources.

Question 2:
Is there a code snippet somewhere that illustrates how to determine the type of a page from a displayClass or viewClass - like product detail page, category listing, brand listing?

Thanks!

Attachments:
Last edit: 7 years 5 months ago by hactic.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
7 years 5 months ago #272695

Hi,

1.
A URL with /product/ID-.html is a product page.
These numbers might not be product ids but variant ids. You can also access a product page with the id of a variant and in that case, the variant will be preselected in the characteristics.
So maybe you had variants with these ids in a product of your shop and you changed the configuration of the products and generated new variants and thus the ids of the variants changed.
Normally, HikaShop doesn't advertize the URLs with the ids of the variants. They are only in the order/cart pages but search engines aren't supposed to create carts or orders.

2. I don't understand your question.
The SEF URLs are generated based on the file components/com_hikashop/router.php if that's what you're asking.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum