Home > Backend Development > PHP Tutorial > .htaccess rewrite规则有关问题

.htaccess rewrite规则有关问题

WBOY
Release: 2016-06-13 12:53:00
Original
828 people have browsed it

.htaccess rewrite规则问题
变量已经用红色全部标注,麻烦大家帮忙看下哪儿写的不对

URL:
/ListInfo.php?&mid=0&classid=2&line=0&tempid=0&orderby=0&myorder=0&ph=1&test1=0&testfield3=2&testfield4=0&testfield4=3__5

.htaccess 规则:

RewriteRule ^(.*)select-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.*)-([0-9]+)-1-(.*)-(.*)-(.*)-(.*)-(.*)\.shtml$ $1ListInfo.php?&mid=$2&classid=$3&line=$4&tempid=$5&orderby=$6&myorder=$7&ph=1&test1=$8&testfield3=$9&testfield4=$10&$11=$12&%1 [L,NC]

.htaccess url
------解决方案--------------------
后向引用 的数量不能超过 10 !
即只能是 $0, $1,...$9

是否有突破的方法,你可以搜索一下。
我只知道 php 中可用花括号括起 {$11}

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template