0 and $n < 1000) { header("Location: https://".$_SERVER['HTTP_HOST'].'/index.php?option=com_content&view=article&id='.(1000+$n).'&Itemid=374',TRUE,301); } else { header("Location: https://".$_SERVER['HTTP_HOST'].'/',TRUE,301); } ?>