求url正则 http://localhost/show.php?t=1&b=Dell&m=75UYF改写为http://localhost/show.php/t/1/b/Dell/m/75UYF.htm多个参数,又该如何呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $str = 'http://localhost/show.php?t=1&b=Dell&m=75UYF';$str = preg_replace('#(?:[\?|\&])(.+?)\=([^\&]+?)#is','/$1/$2',$str) . ".htm";echo $str; 也可以这样:先parse_url然后…… echo preg_replace("/[?&#=]/", "/", $str) . "htm"; echo preg_replace("/[?&#=]/", "/", $str) . "htm";---------------------.....It can be so easy.....so stupid I am ! RewriteEngine onRewriteBase /RewriteRule (.+)\.html$ show.php?id=$1 [L] odbc_fetch_array()怎么用 文件上传的路径问题 ini_set函数怎么会出错,等高手 <select>选项的应用问题. PHP has encountered an Access Violation at 00C07A58 sql 搜索问题 如何获取exec调用dos命名返回的值 有谁做过网络广告机的后台内容管理系统(php),和普通的php应用程序有啥区别? 关于php安装的问题 怎么把php的数组写入到JS里 如何在 Zend Studio 中重新设置 INCLUDE 目录? 找人做:
$str = preg_replace('#(?:[\?|\&])(.+?)\=([^\&]+?)#is','/$1/$2',$str) . ".htm";
echo $str;
先parse_url然后……
---------------------.....It can be so easy.....so stupid I am !
RewriteBase /
RewriteRule (.+)\.html$ show.php?id=$1 [L]