View Single Post
Old 02-20-2014, 10:00 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline

Join Date: Apr 2007
Posts: 14,132

Default Re: 301 Redirect deleted product to new page instead of 404

If this is for products only probably better to do it here

func.product.php around line 2430 if product is not found or disabled

PHP Code:
            } else {
        } else {

replace the one you need with

func_header_location($location, true, 301, true, false);

Replace $location with where you want it to go like 'home.php', or 'home.php?cat=XX', or static page...

This func_select_product is called by product.php. Keep in mind though that same function is probably called on other occasions to list products so probably best to replace the func_403 or func_page_not_found with the new code and leave the "return false" as is
Steve Stoyanov
Web Development
Reply With Quote