htaccess规则的regexp工作不正确

时间:2015-05-10 13:45:27

标签: regex .htaccess mod-rewrite

这是原始网址

final String decoded = URLDecoder.decode(encoded, "UTF-8");

和htaccess中的规则

/toolkit/families-of-schools/start/ash-green-school-cv7-9ah

我希望得到RewriteRule ^(.*)$ /index.php/$1 RewriteRule ^/index.php/toolkit/families-of-schools/start/(.+?)$ /index.php/toolkit/families-of-schools/start?school=$1 [L] 结果,而不是

school=ash-green-school-cv7-9ah

我的正则表达式有什么问题?

0 个答案:

没有答案