我有这个网址
http://localhost/sahara/product.php?action=viewcat
http://localhost/sahara/product.php?action=viewsubcat&catparent=40
和 htaccess 是
RewriteRule product-action-(.*)\.html$ product.php?action=$1
RewriteRule product-action-(.*)-catparent-(.*)\.html$ product.php?action=$1&catparent=$2
然后当我调用重写 url 时,只有第一个代码有效
http://localhost/sahara/product-action-viewcat.html ---> it's work
http://localhost/sahara/product-action-viewsubcat-catparent-40.html ---> it's not work
我的脚本的 htaccess 的正确代码是什么 谢谢