【发布时间】:2009-01-26 22:17:45
【问题描述】:
我的 .htaccess 中有以下 RewriteRule:
RewriteRule ^products/([A-Za-z0-9-\s\@]+)/([A-Za-z0-9-\s\@]+)/?$ /store/products/product.php?prod=$1&src=$2 [L,QSA]
它需要一个url,例如:
http://example.com/store/products/lawnmower/blogThatLovesUs
并在此处显示页面:
http://example.com/store/products/product.php?prod=lawnmower&src=blogThatLovesUs
有没有办法可以编辑这个 RewriteRule 以便用户看到
http://example.com/store/products/lawnmower/(sans blogThatLovesUs)
在他们的地址栏中?
【问题讨论】:
标签: .htaccess