一直以为已经很完美地解决了windows下伪静态的中文链接问题,
有博友也使用了才发现翻页有问题,今天更新一下新代码,感谢lonwern
<?php $qs = $_SERVER['QUERY_STRING']; $_SERVER['PATH_INFO'] = iconv("GBK//IGNORE", "UTF-8//IGNORE", substr($qs, strpos($qs, ':80')+3)); $_SERVER['QUERY_STRING'] = ''; $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'] = '/index.php'; include('index.php'); ?>
暂无评论