ravi@gowebbaby.com Posted June 20, 2013 Share Posted June 20, 2013 (edited) I want to redirect all 404 pages to home page using 301 redirect. Thanks Edited June 20, 2013 by ravi@gowebbaby.com (see edit history) Link to comment Share on other sites More sharing options...
rajiv Posted July 4, 2013 Share Posted July 4, 2013 (edited) 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 July 4, 2013 by rajiv (see edit history) Link to comment Share on other sites More sharing options...
cocothecat Posted July 4, 2013 Share Posted July 4, 2013 (edited) Why? What's the reason for this? 301 all OLD urls to the home page is not great seo :/ 404 provides a purpose id suggest maintaining any old link structure by redirecting old to new page locations. Edited July 4, 2013 by cocothecat (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts