url rewrite正则式问题
014zx 2008-03-05 04:27:04 原来
RewriteRule ^/(.*)/(.*)\.html /index.php\?controller=$1&action=$2
www.xxx.com/city/index.html
解释成www.xxx.com/index.php?controller=city&action=index
现在想实现
把www.xxx.com/city
解释成www.xxx.com/index.php?user=city
规则写成
RewriteRule ^/(.*) /index.php\?user=$1
确实可以实现www.xxx.com/city重写成www.xxx.com/index.php?user=city
但是www.xxx.com/city/index.html
却被重写成www.xxx.com/index.php?user=city/index.html
请问这个规则该怎样改
RewriteRule ^/(.*) /index.php\?user=$1
或还有其他的实现方法