[b]Sergey Shepelev[/b] спасибо
В итоге должно получится так?
[code]
location /users {
rewrite ^/users/(.*)\.html$ /user.php?user=$1 last;
}
location /photosharing {
rewrite ^/photosharing/([a-z]{1})(.*)$ out.php?$1=$2 last;
}
location /imagehosting {
rewrite ^/imagehosting/(.*)$ show.php?img=$1 last;
}
location /gallery {
rewrite ^/gallery/([0-9]+)-([^/]*)/(.*)$ /gallery.php?gal=$1&img=$3? last;
}
location /viewimg {
rewrite ^/viewimg/([0-9]+)-([^/]*)/(.*)$ gallery_body.php?gal=$1&img=$3? last;
}
[/code]
P.S. Играет ли регистр букв в данном случае например как ImageHosting и imagehosting