>  Q&A  >  본문

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+ )-(?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=$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 마지막 ;
rewrite /index/([a-z]+)-(d+)-(.)-(.)-(d+)-(.)-(.)-(d+)-0-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=0&only=1&jr_update=$9&jr_insert=$n0&page=$n1 마지막;

다시 쓰기 /index/([a-z]+)-(d+)-(.)-(.)-(d+)-(.)-(.)-(d+)-(d+)-1- (?d+)-(?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 마지막;

过去多啦不再A梦过去多啦不再A梦2713일 전711

모든 응답(2)나는 대답할 것이다

  • PHPz

    PHPz2017-05-16 17:19:31

    답은 내 질문에 있습니다

    회신하다
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 17:19:31

    개인적으로는 이건 좀 너무 보기 흉한 것 같아요. 내부 경로나 점프 규칙 작성을 고려할 수 있습니다. 예:
    의사 정적으로 작성됨:

    으아아아

    PHP 페이지에 규칙 추가:

    으아아아

    회신하다
    0
  • 취소회신하다