从 wordpress 帖子中删除撇号 URL
Remove apostrophe from wordpress posts URL
我们遇到的问题 'long listed posts' 包含在永久链接中,我们定期更新 wordpress,因此现在不再访问 的永久链接,当我们打开 的网址时,它将显示 404 页面,这些只发生在新的旧帖子被自动删除的 wordpress 中。
即
原文 Url :
http://localhost/test-new/world%E2%80%99s-most-popular-new-test-company-with-big-impactswe/
想替换为
http://localhost/procument-new/worlds-most-popular-new-gen-companies-with-big-impacts/
简而言之,我们要从永久链接中删除 的
建议我,提前谢谢你。
Wordpress 将特殊字符转化为实体,你想直接用'
(apostrophe)打开,会显示404
,你应该去
Settings ==> Permalinks
并更新它。
已解决,实际上我错了,我把代码放在 但不需要在
中换行
RewriteRule ^(.)'(.)$ /$1$2 [R=301,L]
RewriteRule ^(.)'(.)$ /$1$2 [R=301,L]
我们遇到的问题 'long listed posts' 包含在永久链接中,我们定期更新 wordpress,因此现在不再访问 的永久链接,当我们打开 的网址时,它将显示 404 页面,这些只发生在新的旧帖子被自动删除的 wordpress 中。
即 原文 Url : http://localhost/test-new/world%E2%80%99s-most-popular-new-test-company-with-big-impactswe/
想替换为
http://localhost/procument-new/worlds-most-popular-new-gen-companies-with-big-impacts/
简而言之,我们要从永久链接中删除 的
建议我,提前谢谢你。
Wordpress 将特殊字符转化为实体,你想直接用'
(apostrophe)打开,会显示404
,你应该去
Settings ==> Permalinks
并更新它。
已解决,实际上我错了,我把代码放在 但不需要在
中换行RewriteRule ^(.)'(.)$ /$1$2 [R=301,L]
RewriteRule ^(.)'(.)$ /$1$2 [R=301,L]