1

这是我所有的重写规则中的 3 个

RewriteRule  ^.*-en-loire-atlantique-([0-9]+)/.*-a-.*-([0-9]+)$  /sortir21/index.php?com=liste-cat-lieux&t=$1&l=$2 [L]
RewriteRule  ^.*-en-loire-atlantique-([0-9]+)$  /sortir21/index.php?com=liste-cat-ville&t=$1 [L]
RewriteRule  ^.*-a-.*-([0-9]+)$  /sortir21/index.php?com=liste-ville-lieux&l=$1 [L]

来自网址

concerts-en-loire-atlantique-32/sortir-a-nantes-44000
concerts-en-loire-atlantique-32
sortir-a-nantes-44000

像这样第一个不起作用,它是执行的 3

当我将“/”更改为“-”时,它可以工作...<code>ntique-([0-9]+)-.*-a-.*-([0... ,所以它不需要斜杠

我试图逃跑\/,什么都没有

我试试AllowEncodedSlashes On ,什么都没有

我所有的规则都是在 Mac OS X 上使用 MAMP 从 htaccess 文件中调用的

4

0 回答 0