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:
func_403(33);
} else {
func_page_not_found();
}
} else {
return false;
}
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