Code 200 for not existing page instead 404.

  • Posts: 178
  • Thank you received: 5
10 years 5 months ago #194972

-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2.2
-- PHP version -- : 5.4.38

When open not existing url, instead 404 error opens main page. It's not good for SEO, as I know. How to show Error page?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 5 months ago #194974

Hi,

This is not handle by HikaShop. It is more a related to components like sh404sef, etc.

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

  • Posts: 178
  • Thank you received: 5
10 years 5 months ago #195072

Xavier wrote: Hi,

This is not handle by HikaShop. It is more a related to components like sh404sef, etc.

But I don't use any SEF component. Only Joomla and Hikashop.

Last edit: 10 years 5 months ago by alikon1.

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

  • Posts: 178
  • Thank you received: 5
10 years 5 months ago #195076

Noticed this happens if in SEF url options -> Remove products and categories id in URLs -> No.
If select No - page will load even it doesn't exist.
For example original url /category/43-home.html, but /category/43-homehtml, /category/43-homefdgdfg.html, /category/43-home.htmladasdas works too.

Last edit: 10 years 5 months ago by alikon1.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 5 months ago #195100

Hi,

Ok I see, In HikaShop when there is the id of the product, so we use it to find the product page, no matter what is present in the url after.

What can be done to force the use of the correct url for the robots is to use the Canonical urls in Configuration > Features > SEF.
This way it will add a meta tag for the canonical url and the robots will use it for SEO.

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

  • Posts: 178
  • Thank you received: 5
10 years 5 months ago #195210

Xavier wrote: This way it will add a meta tag for the canonical url and the robots will use it for SEO.

I've already created post about canonical URL.
Search Engines ignore "rel=canonical" if it mentioned twice on a page.

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

  • Posts: 84220
  • Thank you received: 13673
  • MODERATOR
10 years 5 months ago #195283

Hi,

So let's continue the discussion on that other thread.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum