Welcome! Log In Create A New Profile

Advanced

Re: htaccess для nginx

April 21, 2010 02:27PM
[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
Subject Author Posted

htaccess для nginx

Rollex April 20, 2010 03:34PM

Re: htaccess для nginx

Sergey Shepelev April 21, 2010 03:30AM

Re: htaccess для nginx

Rollex April 21, 2010 02:27PM

Re: htaccess для nginx

Rollex April 23, 2010 06:47AM

Re: htaccess для nginx

Rollex April 25, 2010 08:10AM

Re: htaccess для nginx

Alexey V. Karagodov April 25, 2010 02:36PM

Re: htaccess для nginx

Sergey Shepelev April 25, 2010 02:52PM

Re: htaccess для nginx

Rollex April 26, 2010 10:24AM

Re: htaccess для nginx

Sergey Shepelev April 26, 2010 11:06AM

Re: htaccess для nginx

uri October 28, 2010 03:13PM

Re: htaccess для nginx

Богун Дмитрий October 29, 2010 07:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready