本文实例讲述了使用纯php代码实现页面伪静态的方法。分享给大家供大家参考。具体如下: if(1==URLROLE){ $nav=$_SERVER["REQUEST_URI"]; $script_name=$_SERVER["SCRIPT_NAME"]; $nav1=ereg_replace(".html","",substr(ereg_replace("$script_name","",urldecode($nav)),1)); $vars = @explode("/",$nav1); $_url = array_chunk($vars,2); $_GET['m']