简体   繁体   English

如果有任何 unicode 字符,wordpress 永久链接重定向到主页

[英]wordpress permalink redirect to home page if there have any unicode characters

i have a client who recently change his host server and face a werid problem.我有一个客户最近更换了他的主机服务器并面临一个奇怪的问题。 i belive it's all happend for unicode characters.我相信这一切都发生在 unicode 字符上。
Ex: http://example.com/wp-content/uploads/2014/07/dog-meghivo-430x430.jpg (it's show a images because it's don't have any unicode characters) but when a unicode characer is avaliable in url it's not showing any images and redirect to homePage.例如: http : //example.com/wp-content/uploads/2014/07/dog-meghivo-430x430.jpg (它显示图像,因为它没有任何 unicode 字符)但是当 unicode 字符在url 它不显示任何图像并重定向到主页。

Problem: http://example.com/wp-content/uploads/2014/07 /dôg-meghivo-430x430.jpg (ô)问题: http : //example.com/wp-content/uploads/2014/07 /dôg-meghivo-430x430.jpg (ô)
so i want to know how to fix this .i search many time in google for this topic but i can't find the solution.所以我想知道如何解决这个问题。我在谷歌中搜索了很多次这个主题,但我找不到解决方案。 Thank谢谢

it's a new bug on the new version of WordPress.这是新版 WordPress 上的一个新错误。 It's happened because you changed your permalink after changing your server.发生这种情况是因为您在更改服务器后更改了永久链接。 The solution is to Upload your post image again and update the post.解决方案是再次上传您的帖子图片并更新帖子。 It's should work fine after that.之后它应该可以正常工作。 But you can try to change your permalink setting's to post id但是您可以尝试将永久链接设置更改为发布 ID

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM