VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: mblokdijk on August 29, 2016, 19:47:35 PM

Title: 404 question
Post by: mblokdijk on August 29, 2016, 19:47:35 PM
i am not getting vm 404.

when i type domain.com/asdf/adf it shows the vm homepage

i just want to create my own 404 page.

tried htaccess
tried /templte/templatename/error.php
tried enable 404 in virtuemart
tried sf404 component, etc.

nothing works...

my question is, how can i get my OWN 404 page instead of the vm homepage?

not logical and ugly...


Title: Re: 404 question
Post by: GJC Web Design on August 29, 2016, 22:08:46 PM
searched?

http://forum.virtuemart.net/index.php?topic=135091.0
Title: Re: 404 question
Post by: mblokdijk on August 29, 2016, 22:32:21 PM
yep... tried all even change the router.php... nothing works.. ;-(

this is not logical.. (below between brackets, from the tread you mentioned)
[
for example. if your shop alias is

/shop

then you type in

/shop/axnlksdlklkfjkldgfj     you will NOT get a 404
what you get is    /shop   display, BECAUSE vmart/ joomla has NO idea what the "view" is supposed to be to even know if its a fake category.

& OP,
This really does not create a SEO problem. The canonical url is in the head of the doc.
Report

]

in my opinion: 404 means not found, it does not mean 'show vm homepage instead'

i want a 404 to give a message to the viewer, that what he types is not available... it's not that hard.. but i cannot get this to work..