how to make Prestashop 404 error pages redirected to homepage, and not to default template?
i did try everything – nothing works.
i did put it in .htacess -> not working,
i placed it in 404.tpl file too, manual redirect with javascript in the head, sadly it dont accept the changes and it is not working.
i am not able to find where it is stated and from where it redirects 404 errors to this shitty template page.
from SEO stand of view this hurts really bad.
Please help me.
Thanks.
(been trying to fix this from 5 days now and i got to a dead end.
u are my only hope. Please help!)
2
Answers
I don’t exacly know Prestashop but as I know you have similar class to:
Probably it is stored there:
As you can see you may add
header("Location index.php")
up there. In place"Location <redirect_location>"
you can write where you want to redirect. More informations you can find in PHP Manual: headerCreate override in override/controllers/front/PageNotFoundController.php with :
Regards