Good afternoon! Tell me how to hide the path to the folder in the url. Now I have it like this http://domain.ru/main/help.php , and I need http://domain.ru/help.php
If only a few files are needed in the /main/ folder.
If you need to specify a different root for all php files. rewrite ^/(help|file1|file2)\.php$ /main/$1.php;
location~ \.php$ {
root /var/www/main;
fastcgi_pass ...;
include fastcgi_params;
}