Jump to content

How to 301 all 404 page to home page


Recommended Posts

  • 2 weeks later...

In your root .htaccess file.

ErrorDocument 404 http://www.yoursite.com/

 

 

But it will work for general pages of Prestashop, not for product and category pages

i.e if a url is http://www.yoursite.com/8-category-name

if user changes it to http://www.yoursite.com/abc-category-name

it will work means redirected to homepage

but it will not work if user type http://www.yoursite.com/abc-category-name-123

because Prestashop only check first id to determine the page. if correct id is found it does not generate 404 and thus it does not redirect to homepage.

Edited by rajiv (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...