make allowances for index.php in the path