wordpress

wordpress iis web.config配置重写 含中文的链接404报错解决

部分解决方法如下

修改 wp-includes/class-wp.php

第169左右

//          list( $req_uri ) = explode( '?', $_SERVER['REQUEST_URI'] );
            list( $req_uri ) = explode( '?', mb_convert_encoding($_SERVER['REQUEST_URI'], 'utf-8', 'GBK') );

或者修改 $_SERVER['REQUEST_URI'] 的编码

如在wp-config.php 下面加上

$_SERVER['REQUEST_URI'] = mb_convert_encoding($_SERVER['REQUEST_URI'], 'utf-8', 'GBK');

在windows 本地测试有效