解决windows主机伪静态中文链接不能翻页问题

   一直以为已经很完美地解决了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');
?>

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.