我的地址是 unix时间戳+信息ID:12102462981.html 但我现在想伪静态 又不想改变原来的地址 但好像unix时间戳没得标签 ,要怎么提取 unix时间戳 ?
感谢 jiaxian520 提供思路
访问地址为:/e/action/ShowInfo.php?classid=2&filename=17157682703574960
查找:$id=(int)$_GET['id'];
修改为:$id=(int)$_GET['filename'];
查找:$r=$empire->fetch1("select * from {$dbtbpre}ecms_".$tbname." where id='$id' limit 1");
修改为:$r=$empire->fetch1("select * from {$dbtbpre}ecms_".$tbname." where filename='$id' limit 1");
伪静态: rewrite ^([^\.]*)/ShowInfo/(.+?)/(.+?)\.html$ $1/e/action/ShowInfo.php?classid=$2&filename=$3 last;
搞定
|