Answer the question
In order to leave comments, you need to log in
What should happen when you type site.ru/////////////// and a bunch of slashes after it?
Yandex and Google return 200, but if I'm not mistaken, it turns out that the URLs are different, but the content is the same?
https://habrahabr.ru////////////////////// returns 404
https://toster.ru//////////// ////////////// returns 200!
What rule generally removes one slash after the host without any redirect? And why are two slashes not removed?
https://toster.ru/ will open https://toster.ru but
https://toster.ru// will open https://toster.ru// saving two slashes
Can you advise what to read in general about slashes in the URL?
For example, I recently fought with Apache not understanding why it returns 301 redirects, substituting a slash at the end of the URL, it turned out there was a whole detective story with DirectorySlash https://httpd.apache.org/docs/2.4/mod/mod_dir.html In general, I would like get some structured information on all these slashes.
PS
The creator of the World Wide Web, British physicist Tim Berners-Lee, admitted that the double slash ( http://) , which is used to designate addresses of Internet resources, is a redundant character and was introduced by him by mistake, the Times newspaper reports.
Answer the question
In order to leave comments, you need to log in
The URL is simply the address of the resource, i.e. a string that uniquely identifies what the server needs to do.
The interpretation algorithm is determined by the server.
Someone can give you 404, and someone 200. And someone even 500. This is at the discretion of the developers.
Slashes are chosen by analogy with the path in the disk system, but there it has been since the days of MS-DOS, Unix, CP / M.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question