Welcome! Log In Create A New Profile

Advanced

Арифметические операции в rewrite

Роман
October 28, 2013 07:30PM
есть простое правило

rewrite ^/discussions/page-([0-9]+)\.html /index.php?page=$1;

можно ли как то вычесть из переменной $1?

т.е. page-2.html будет передавать page=1 и тд
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

Арифметические операции в rewrite

Роман October 28, 2013 07:30PM

Re: Арифметические операции в rewrite

Maxim Dounin October 29, 2013 04:18AM

Re: Арифметические операции в rewrite

Роман October 29, 2013 04:48PM

Re: Арифметические операции в rewrite

Maxim Dounin October 30, 2013 08:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
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