ReWrite 问题:如何将www.myhost.com/pub/abc.php?id=a 转换成www.myhost.com/pub/a.html?
我在.htaccesss里写了:
RewriteEngine on
RewriteBase /
RewriteRule /pub/(.*)\.html /pub/abc\.php?id=$1 [R,NE,NC] [P]
然后通过url:(假设id=aaa)
http://www.myhost.com/pub/aaa.html
去访问http://www.myhost.com/pub/abc.php?it=aaa
但是显示该页无法找到.
此时网站的其它页面可以正常访问.
请高手指点. 100分聊表谢意.
QQ:48427785