Index redirecting to singleview.php