本文介绍了加上被替换为%252520迹象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 当我点击在谷歌我index'd网页加号在我的查询字符串被替换(EN codeD?)为%252520。When I click on my index'd pages in Google the plus signs in my query string are being replaced (encoded?) for %252520.谁知道为什么?例如:lovelakedistrict.com/result/?q=Private%252520car%252520park&page=2应lovelakedistrict.com/result/?q=Private+car+park&page=2我听说,这是我的重定向的URL htaccess的结果?I have heard that this is a result of redirecting my urls in htaccess?推荐答案如果一个空间用于URI查询,它必须被替换为%20 (%的编码)或 + (的应用程序/的X WWW的形式 - urlen codeD 的内容类型的形式)。在你的情况下,数据似乎是EN codeD三次(%为en codeD与%25 )。If a space is used in the URI query, it must either be replaced by %20 (percent encoding) or by + (application/x-www-form-urlencoded content type for forms). In your case the data seems to be encoded three times (% is encoded with %25).尝试这些规则来替换这些序列是 + :Try these rules to replace such sequences it with +:RewriteCond %{QUERY_STRING} (.*?)%(25)+20(.*?%(25)+20.*)RewriteRule ^ %{REQUEST_URI}?%1+%3 [N]RewriteCond %{QUERY_STRING} (.*?)%(25)+20(.*)RewriteRule ^ %{REQUEST_URI}?%1+%3 [L,R=301] 这篇关于加上被替换为%252520迹象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-29 10:06