How to disable URL encoding?

on my website i have urls with spaces. These spaces are automatically encoded to% 20.

So how can I turn it off?

I want it:

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

instead i get

http://http://domain.com/my%20name/abc
+3
source share
1 answer

From w3c spec :

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

So you cannot “disable” this. For biscuitstack suggestions, use underscores (_) instead, or even better hyphens (-) in comments.

+2
source

Source: https://habr.com/ru/post/1796002/


All Articles