Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: htaccess для nginx
Sergey Shepelev спасибо
В итоге должно получится так?
location /users {
rewrite ^/users/(.*)\.html$ /user.php?user=$1 last;
}
location /photosharing {
rewrite ^/photosharing/({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;
}
P.S. Играет ли регистр букв в данном случае например как ImageHosting и
imagehosting
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,77263,77735#msg-77735
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|