我正在使用带有这种固定链接的 wordpress:
/%year%/%monthnum%/%postname%/
如果我使用这种类型的 url: example.com/2010/03/तकनीक
它将此 url 视为 example.com/2010/03/(通过忽略 unicode 字符) 并显示 2010 年 3 月的存档列表。
如果我使用英文网址: example.com/2010/03/technology 然后它完美地工作。
这个问题甚至出现在标签页上: 例如 example.com/tag/इंटरनेट 被视为 example.com/tag/并显示 404 页面。
为什么 wordpress 忽略 unicode 字符?
如果我使用默认的查询字符串结构,那么即使使用 unicode 字符它也能完美工作。
服务器信息: IIS7 Win2008 Server(启用Url重写) WordPress 2.9.2
最佳答案
有关问题的概述,请查看:
http://ruslany.net/2010/03/important-update-for-iis-7-0-fastcgi-module/
这是指你现在过时的:
http://ruslany.net/2010/02/fastcgi-module-differences-across-iis-versions/
我自己的情况已通过应用 Win 7 SP1 得到解决,但有趣的是,我仍然需要应用修补程序中描述的注册表黑客:
关于php - Wordpress 忽略 URL 中的 Unicode 字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2473812/