Hi Andy,
In your listingDetail.php template, replace the "Record not found!" code with a redirect to your 404 page.
Find this code:
if (!$newsRecord) { dieWith404("Record not found!"); } // show error message if no record found
Replace with this code:
if (!$newsRecord) { header('Location: http://www.comparedirect.eu/404-compare-direct.php'); } // redirect to 404 page
Hopefully this is what you were after!
Cheers,
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/