4 ms·
It's interesting if add a slash to this page the result will be different. https://news.ycombinator.com//item?id=8297241 https://news.ycombinator.com//item?id=
by hellohellokitty 12y ago
It's interesting if add a slash to this page the result will be different.
https://news.ycombinator.com//item?id=8297241 https://news.ycombinator.com//item?id=8297241
Where in all other cases tested it won't
Is this a server specific stuff? Or it's configurable
http://url.spec.whatwg.org//#concept-url-path http://url.spec.whatwg.org//#concept-url-path
http://www.nytimes.com///pages//politics//index.html http://www.nytimes.com///pages//politics//index.html
http://www.bing.com////search?q=site%3Abing.com%2Fsearch%3Fq%3D http://www.bing.com////search?q=site%3Abing.com%2Fsearch%3Fq...
https://www.cloudflare.com///index https://www.cloudflare.com///index
- squeaky-clean 12y agoMany frameworks allow you to route URLs to actions instead of mapping to a file. I just tested it in one of my Symfony projects, and I was able to route /login and //login to two separate controllers. Furthermore, it's pretty common to rewrite URLs, doing things like adding/removing trailing slashes, whatever. So it wouldn't be too difficult to have it condense multiple slashes into just one. For example, this link worksfine: google.com//////////////////////////////////search?q=foobar Google search tries to cover a lot of typos or be pretty user-friendly for people who don't understand tech. I wouldn't be surprised if there's a grandma out there who thinks http://google.com//search http://google.com//search is the correct method.
- underpantsgnome 12y agono one will ever know.