Code: Select all
<?php if ( '<!--TOTAL_ITEMS-->' == 0 ) header('Location: /example.php'); ?>Code: Select all
<?php if ( '<!--TOTAL_ITEMS-->' == 0 ) header('Location: /example.php'); ?>Code: Select all
<?php
if ( '<!--TOTAL_ITEMS-->' == 0 ) {
header("HTTP/1.0 404 Not Found");
header('Location: /?force_template=content_not_found');
}