Author Topic: No 404 code for non-existent links!  (Read 350 times)


  • Jr. Member
  • **
  • Posts: 355
No 404 code for non-existent links!
« on: September 11, 2019, 16:02:06 pm »
Say I have a category "/shop/shoes"

If I type any random text after that e.g. "/shop/shoes/ewqroiu23509u7rew"
Virtuemart returns the "shoes" page with a 200 HTTP code.

This is bad.

It needs to return 404 code or SEO goes down the drain.... What is going on?

I have changed the URLs for some products, and now Google is not getting a 404 for the old links, they are getting valid category pages instead (bad bad bad).

vm 3.6.1 10129
Joomla 3.9.11
"Enable VirtueMart 404 error handling" is enabled


  • Global Moderator
  • Super Hero
  • *
  • Posts: 10420
  • VirtueMart Version: 3+
Re: No 404 code for non-existent links!
« Reply #1 on: September 11, 2019, 22:11:46 pm »
It produces a canonical url for the shoes page.

users getting a 404 is not good for SEO either.

dont change links without really planning things out and testing.

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)