Routing in codeIgniter with nginx
Routing in CodeIgniter with Nginx While setting up Codeigniter in Nginx if a 404 error occurs when you have to set Codeigniter for subfolders in Nginx. For that open /etc/nginx/sites-available/default and then add the following code to the configuration: