Here’s a quick fix to hide index.php from the URL of the site hosted on an NGINX web server.
For shared webroot, you need to setup each site that needs to hide it index.php on the main NGINX vhost or create config file for each and store it in /etc/nginx/site-available/site_conf.
Don’t forget to add symlink to site-enable:
$ > ln -s /etc/nginx/site-available/site_conf /etc/nginx/site-enabled/site_conf