Fix the ajax request by removing index.php