Page Not Found redirect not working for some of my deleted products
I have a different sort of problem - all mistyped URL searches to my site show the page_not_found as they are supposed to and nicely returning 404 Not Found headers. Also products which have been removed from the catalog and redirected via .htaccess return either the 410 or 301 headers as needed.
The problem I couldn't find solution for is with the pages for products which have been removed from catalog but I don't want to redirect them with 301 or 410 if this can be helped. I imagine that since the deleted products don't exist anymore, typing their former URL would generate standard 404 Not Found header and display the page_not found without the need of redirecting them one by one.
Example 1 - accidental URL typed/mistyped returns 404 response:
Example 2 - redirected in .htaccess, old directory returns 410:
Example 3 - removed product URL and not redirected in .htaccess (other than the line: ErrorDocument 404 /index.php?main_page=page_not_found) hangs in Browser and displays "Cannot display in Browser" message. Server header check shows however 200 OK. I checked database and confirmed that the product is not there anymore:
I don't understand why. Logically since the URL for the deleted product doesn't exist, the result should be 404 Not Found. Where am I wrong? I'm using ZenCart 1.37 and would appreciate your help. Thanks.
Last edited by all4coffee; 15 Aug 2010 at 05:06 AM.
By jewelrywall in forum General Questions
Last Post: 20 Feb 2012, 09:23 AM
By bigbadboy in forum General Questions
Last Post: 6 Mar 2009, 12:40 PM
By Spinner in forum Templates, Stylesheets, Page Layout
Last Post: 13 Jan 2009, 08:24 PM
By kshorty in forum General Questions
Last Post: 1 May 2008, 11:45 PM
By NamSingh in forum Basic Configuration
Last Post: 15 Oct 2006, 10:31 AM
Content and Graphics Copyright (c) 2003 - 2013 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC