开发者

How to disable URL Encode?

开发者 https://www.devze.com 2023-02-14 18:24 出处:网络
on my website i am having some urls which have spaces.those spaces are开发者_如何学编程 automatically encode by %20.

on my website i am having some urls which have spaces.those spaces are开发者_如何学编程 automatically encode by %20.

So how can i disable it?

I want this:

e.g: http://domain.com/my name/abc

instead of it i am getting

http://http://domain.com/my%20name/abc


From the w3c spec:

Spaces and control characters in URLs must be escaped for transmission in HTTP, as must other disallowed characters.

So you cannot 'disable' this. As biscuitstack suggested in the comments, use and underscore (_) instead, or even better a hyphen (-).

0

精彩评论

暂无评论...
验证码 换一张
取 消