Preliminary fix for redirect issues from index.php.