nginx伪静态

查看:135
本文介绍了nginx伪静态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

伪静态参数超过10个,怎么写
rewrite /index/([a-z]+)-(d+)-(.)-(.)-(d+)-(.)-(.)-(d+)-1-1-(d+)-(d+)-(d+).html$ /index.php?type=$1&cid=$2&q=$3&commission=$4&volume=$5&price_start=$6&price_end=$7&sort=$8&tmall=1&only=1&jr_update=$9&jr_insert=$10&page=$11 last;
后面的$10会解析成$1 0
我试了下${10}也不行啊

自问自答,过会在结贴吧!

我最后在骂一句!
卖假药的百度快点倒闭吧!有你何用!搜索只会推荐假药!!!
http://kzone.iteye.com/blog/1932104

rewrite /index/([a-z]+)-(d+)-(.)-(.)-(d+)-(.)-(.)-(d+)-1-1-(d+)-(?<n0>d+)-(?<n1>d+).html$ /index.php?type=$1&cid=$2&q=$3&commission=$4&volume=$5&price_start=$6&price_end=$7&sort=$8&tmall=1&only=1&jr_update=$9&jr_insert=$n0&page=$n1 last;
rewrite /index/([a-z]+)-(d+)-(.)-(.)-(d+)-(.)-(.)-(d+)-0-0-(d+)-(?<n0>d+)-(?<n1>d+).html$ /index.php?type=$1&cid=$2&q=$3&commission=$4&volume=$5&price_start=$6&price_end=$7&sort=$8&tmall=0&only=0&jr_update=$9&jr_insert=$n0&page=$n1 last;
rewrite /index/([a-z]+)-(d+)-(.)-(.)-(d+)-(.)-(.)-(d+)-1-0-(d+)-(?<n0>d+)-(?<n1>d+).html$ /index.php?type=$1&cid=$2&q=$3&commission=$4&volume=$5&price_start=$6&price_end=$7&sort=$8&tmall=1&only=0&jr_update=$9&jr_insert=$n0&page=$n1 last;
rewrite /index/([a-z]+)-(d+)-(.)-(.)-(d+)-(.)-(.)-(d+)-0-1-(d+)-(?<n0>d+)-(?<n1>d+).html$ /index.php?type=$1&cid=$2&q=$3&commission=$4&volume=$5&price_start=$6&price_end=$7&sort=$8&tmall=0&only=1&jr_update=$9&jr_insert=$n0&page=$n1 last;

rewrite /index/([a-z]+)-(d+)-(.)-(.)-(d+)-(.)-(.)-(d+)-(d+)-1-(?<n0>d+)-(?<n1>d+).html$ /index.php?type=$1&cid=$2&q=$3&commission=$4&volume=$5&price_start=$6&price_end=$7&sort=$8&tmall=$9&only=1&jr_update=$n0&page=$n1 last;
rewrite /index/([a-z]+)-(d+)-(.)-(.)-(d+)-(.)-(.)-(d+)-(d+)-0-(?<n0>d+)-(?<n1>d+).html$ /index.php?type=$1&cid=$2&q=$3&commission=$4&volume=$5&price_start=$6&price_end=$7&sort=$8&tmall=$9&only=0&jr_update=$n0&page=$n1 last;

解决方案

结贴,答案在我的问题里

这篇关于nginx伪静态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆