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 (-).
精彩评论