The solution of more than 9 rewrite parameters under Nginx

Source: Internet
Author: User

Nginx is implemented with a renaming method when handling more than 9 parameters:

     /?m? ( [0-9,]*) H? (\d*) A? ([0-9,]*) c? (\d*) s? (f? (? p<f>[0-9,]*) /$/index.php? param1=$1&param2=$2& param3=$3param4=$4&param5=$5 &param6=$6&param8=$8&param9=$9&param10= $f last;

Notice that the 10th parameter F is passed? P<f> rename to F, of course, it can be other names, $f will be changed to the same line, if there is a 11th parameter O3, then the f? p<f>[0-9,]*) after adding O? (? p<j>\d*) can be, the corresponding param10= $f After the addition of &param11= $j. Nginx does not have a modifier similar to Apache.

The solution of more than 9 rewrite parameters under Nginx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.