RewriteRule ^([A-Za-z]+$)/|([1-9]\d*).html test/cata/index.php?id=$2
RewriteRule ^([A-Za-z]+)/($) test/cata/index.php?entrance=$1请问如何在正则[A-Za-z]+$里面排除某个单词如"book"、"class"
相当于当我访问http://localhost/test/abcdefg/13.html可以
但是当我访问http://localhost/test/book/13.html时不可以
RewriteRule ^([A-Za-z]+)/($) test/cata/index.php?entrance=$1请问如何在正则[A-Za-z]+$里面排除某个单词如"book"、"class"
相当于当我访问http://localhost/test/abcdefg/13.html可以
但是当我访问http://localhost/test/book/13.html时不可以
(?!exp)
(?<!exp)
一个是先行,一个是后发
(arr|unset|function)\.html
这样就只匹配arr.html;unset.html;function.html