PHP8.1.21版本已发布
vue8.1.21版本已发布
jquery8.1.21版本已发布

求apache设置伪静态时的重写规则,该如何处理

原创
2016-06-13 10:08:08 617浏览

求apache设置伪静态时的重写规则
将这个路径http://localhost/my/show.php?id=9重写成http://localhost/my/show/9
将这个路径http://localhost/my/index.php?type=1&curPage=1重写成
http://localhost/my/index.php/1/1

------解决方案--------------------
RewriteRule /shijing/(.*)/(.*)/(.*).html /morePicShow.php?pic_id=$1&sort_id=$2&house_id=$3 

看这个就明白了,
(.*) 对 $1 23 ..

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。