Mod rewrite 使用多变量修改重写

Mod rewrite 使用多变量修改重写,mod-rewrite,Mod Rewrite,My.htaccess正在测试中,我添加了以下命令 Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^Categorie/([^.]+)$ test/index.php?p=$1 [L] 如果我在url domain.com/test/Categorie/1的索引中检查p 我得到演示1 如果我使用domain.com/test/Categorie/1/somename/ 我得到一个4

My.htaccess正在测试中,我添加了以下命令

 Options +FollowSymLinks +Indexes
 RewriteEngine on
 RewriteBase /
 RewriteRule ^Categorie/([^.]+)$ test/index.php?p=$1 [L]
如果我在url domain.com/test/Categorie/1的索引中检查p 我得到演示1

如果我使用domain.com/test/Categorie/1/somename/ 我得到一个404错误

在互联网上的每一个地方,我都能找到解决我问题的方法,但我无法让它工作,因为我一直在遇到这个问题

RewriteRule ^c([0-9]+).*\.html test/index.php?c=$1
这是我用来修理它的