The cause of that error 500 mostly its because your using .htaccess in codeigniter, to solve that problem go to the directory of your xampp for example c:\xampp\apache\conf\ and open the file named “httpd.conf” and go to line 118 and remove the comment which is the number sign (#) or search the “mod_rewrite” then remove the comment.