Changed redirect to directory instead of index.php