Building in redirect as a normal function of the index.php