php - Wordpress 忽略 URL 中的 Unicode 字符

标签 php wordpress unicode permalinks

我正在使用带有这种固定链接的 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 得到解决,但有趣的是,我仍然需要应用修补程序中描述的注册表黑客:

http://support.microsoft.com/kb/2277918

关于php - Wordpress 忽略 URL 中的 Unicode 字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2473812/

相关文章:

php - 强制 phpmailer 发送空邮件

php - 如何在网站前端按SKU搜索产品

python - 从 Unicode 格式的字符串中删除标点符号

asp.net - 包含非 ASCII 国际语言字符的文件名

php - 优化 MySQL XML 解析性能

php - 为什么禁用 WordPress wpautop 功能不起作用?

javascript - 如何创建固定的js slider

objective-c - 网页内容问题

php - 数据表 - 以 HTML <td> 元素形式返回列

php - 如何在 PHP 中集成 Assently api 进行电子签名交易