【发布时间】:2013-03-16 08:52:51
【问题描述】:
我有一个以% 结尾的网址。喜欢:/view/this-is-100%25。网址末尾不能有%吗?如果不允许,我该如何以另一种方式进行,如果允许,为什么会导致错误的请求?
谢谢。
更新:确切错误:
Bad Request
Your browser sent a request that this server could not understand.
【问题讨论】:
-
这可能会有所帮助:Apache: %25 in url (400 Bad Request)
-
什么服务器在为您的页面提供服务?
-
@SamRad 因为仅在 1 个 URL 中出现这种情况,我使用 str_replace 将其放置为“百分比”并在服务器上将其更改回“%”来解决它。丑陋的解决方案,但在我的情况下就足够了!
标签: url character-encoding urlencode bad-request