Fixed URI problem

Fixed error during requests with /index.php/ in the URI