请教一个.htaccess文件解析的问题

postfix2 2012-06-08 02:19:44
我的显示文件在products文件夹的的showdetail.php?id=**

我想把产品显示成以下的规则;
/products/new-products/index.html
/products/outdoor-led/index.html
/products/indoor-led/index.html

.....

我的.htaccess文件如下;
RewriteEngine on
rewritebase /products/

rewriterule ^(\w*)\/index.html$ showproducts.php?id=$1
怎么显示找不到文件呢?
...全文
55 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
postfix2 2012-06-09
  • 打赏
  • 举报
回复
没人进来接分

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧