时间:2021-07-01 10:21:17 帮助过:23人阅读
echo foo('index.php?c=index&m=lists&id=1');function foo($url) { $t = parse_url($url); parse_str($t['query'], $r); return "$r[c]-$r[m]-$r[id].html";}index-lists-1.html
RewriteEngine On
RewriteRule ^(.*)welcome-test-([0-9]+)-([0-9]+).html$ index.php/?c=welcome&m=test&id=$2&page=$3