近日刚弄完博客,typecho伪静态中文查询404得问题倒是解决了(解决办法见文章 typecho中文搜索404解决办法 - 实用工具_软件教程_.net_c#-有码挺好个人博客 (cisharp.com))。但是搜索的时候特殊字符变+加号导致404;倒腾很久才解决,估计wordpresstypecho部署在iis上都会存在此问题;解决办法就是在webconfig文件security节点中添加allowDoubleEscaping="true"即可,在此做下记录,希望对大家有帮助。

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <security>
            <requestFiltering allowDoubleEscaping="true"></requestFiltering>
        </security>
    </system.webServer>
</configuration>
最后修改:2022 年 09 月 29 日
如果觉得我的文章对你有用,请随意赞赏