WordPress ez 2012-06-27
IIS 可以執行 php,所以可以安裝 WordPress,但當網址含有中文時,就會發生異常狀況,此時只要修改
wp-includes\class-wp.php
// 找到 $pathinfo = $_SERVER['PATH_INFO']; // 改成 $pathinfo = mb_convert_encoding($_SERVER['PATH_INFO'], 'UTF-8', 'BIG5'); // 找到 $req_uri = $_SERVER['REQUEST_URI']; // 改成 $req_uri = mb_convert_encoding($_SERVER['REQUEST_URI'], 'UTF-8', 'BIG5');
即可正常使用中文網址!
標籤: WordPress
本文章網址:
https://www.ez2o.com/Blog/Post/WordPress-IIS-Chinese-Url-Error
https://www.ez2o.com/Blog/Post/6
https://www.ez2o.com/Blog/Post/WordPress-IIS-Chinese-Url-Error
https://www.ez2o.com/Blog/Post/6