【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
求一个伪静态地址后面自动加上反斜杠(/)的规则,分别在 NGINX APACHE IIS 下的三种写法! 谢谢了。
比如下面的这个规则
/index.php?a=list&type=news 我想伪静态成 /list/news/
我在NGINX下是这样写的 rewrite ^(.*)/list/([0-9a-zA-Z\-]+)[/]$ $1/index.php?a=list&type=$2 last;
但我想实现的是 当用户访问 /list/news 时自动跳转到 /list/news/
求规则。
这么多天了,终于让我自己找到了!
整理了下 发在我的博客里了
http://www.zhubaoming.com/index.php/rewrite-xiegang/