location / {
#root /usr/share/nginx/html;
root /web/html/site.ru;
.....
autoindex off;
location = /wi {
rewrite ^(.*)$ /wi/;
}
location /wi\/ {
alias /wi/;
}
rewrite ^/([A-Za-z0-9\/\-\_]+)$ /index.php?path=$1;
rewrite ^/([A-Za-z0-9\/\-\_]+)\/$ /index.php?path=$1;
index index.php;
}