求一段rewrite规约

原创
2016-06-13 10:51:56 508浏览

求一段rewrite规则
httpd.ini的

[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
RewriteRule /(\d+)\.html /index\.php\?p=$1
RewriteRule /(\d+) /s\.php\?id=$1
RewriteRule /(\d+)/index\.html /s\.php\?id=$1


http://www.jvvhb.info/123/3.html
URL重写
http://www.jvvhb.info/s.php?k=123&x=3

前面的目录重写已经成功了,大家可以参考下



------解决方案--------------------
RewriteRule ^(.*)/(\d+)/(\d+)\.html$ $1/s\.php\?k=$2&x=$3 [L]
照葫化瓢呗~

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