News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

No 404 code for non-existent links!

Started by EvanGR, September 11, 2019, 16:02:06 PM

Previous topic - Next topic

EvanGR

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



PRO

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.



EvanGR

[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.






GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

EvanGR

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


Maxim Pishnyak

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.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

EvanGR

@Maxim

Thank you. Did you try with Joomla SEF URL active?

Maxim Pishnyak

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"
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

EvanGR

Thank you for testing.
I will look into it further and try and figure out what's causing this on my setup.