我这样:
RewriteRule (.+)/(.+?)\.htm$ $1/brand.php?brand=$2
RewriteRule (.+)/(.+?)/(.+)\.htm$ $1/model.php?brand=$2&model=$3
http://localhost/laptop-batteries/Apple.htm (成功)
http://localhost/laptop-batteries/Apple/A1012.htm (但是这条失败)
错误信息如下:
Not Found
The requested URL /laptop-batteries/Apple/model.php was not found on this server.
Apache/2.0.55 (Win32) PHP/5.1.2 Server at localhost Port 80