VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: EvanGR on September 11, 2019, 16:02:06 PM

Title: No 404 code for non-existent links!
Post by: EvanGR 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


Title: Re: No 404 code for non-existent links!
Post by: PRO 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.


Title: Re: No 404 code for non-existent links!
Post by: EvanGR on October 11, 2021, 09:22:15 AM
[Old topic, but still relevant.]

There needs to be an option to have true 404 response for non-existent products and pages.
It's basic web standards.





Title: Re: No 404 code for non-existent links!
Post by: GJC Web Design on October 11, 2021, 10:53:42 AM
??
Title: Re: No 404 code for non-existent links!
Post by: EvanGR on October 11, 2021, 13:57:19 PM
Quote from: GJC Web Design on October 11, 2021, 10:53:42 AM
??

This option is not working for me.
Two sites, with different templates, VM 3.8.8 and VM 3.8.9.

Just found that I also reported this in another thread: http://forum.virtuemart.net/index.php?topic=146523

And others have reported something similar...
http://forum.virtuemart.net/index.php?topic=138969.msg487708#msg487708

Title: Re: No 404 code for non-existent links!
Post by: Maxim Pishnyak on October 13, 2021, 18:33:17 PM
Quote from: EvanGR on October 11, 2021, 13:57:19 PM
Quote from: GJC Web Design on October 11, 2021, 10:53:42 AM
??

This option is not working for me.
Two sites, with different templates, VM 3.8.8 and VM 3.8.9.

Just found that I also reported this in another thread: http://forum.virtuemart.net/index.php?topic=146523

And others have reported something similar...
http://forum.virtuemart.net/index.php?topic=138969.msg487708#msg487708


Just tested almost all releases of VirtueMart 3 with stable hosting using default template based on VirtueMart3.2.0_Joomla_3.6.5(3.10.2)-Stable-Full_Package.zip. Everything fine for those who would like to not use VirtueMart 404 error handling.
Title: Re: No 404 code for non-existent links!
Post by: EvanGR on October 14, 2021, 08:46:45 AM
@Maxim

Thank you. Did you try with Joomla SEF URL active?
Title: Re: No 404 code for non-existent links!
Post by: Maxim Pishnyak on October 17, 2021, 08:45:34 AM
Quote from: EvanGR on October 14, 2021, 08:46:45 AM
@Maxim

Thank you. Did you try with Joomla SEF URL active?
It was "http://.... /vm/headpiece/cowbo1y-hat-detail"
Title: Re: No 404 code for non-existent links!
Post by: EvanGR on October 18, 2021, 08:43:35 AM
Thank you for testing.
I will look into it further and try and figure out what's causing this on my setup.