On 24.10.2015 11:29, Dominique Pellé wrote: > Purodha Blissenbach <puro...@blissenbach.org> wrote: > >> Hi, >> >>> http:/www.google.com (there should be 2 slashes after >>> protocole) >> >> This is valid, at least protocolwise. I refers to a directory >> /www.google.com on the current server. Good warning, of course, if >> there >> is at least a dot in there. >> >> Purodha > > > I don't think that 1 slash only after http: is correct. > Or do you have a link which explains what you say? > > For documents on local hosts, you need to write something > like http://localhost/foo.html or http://127.0.0.1/foo.html > > For file: protocol, it localhost can be omitted so > you can have 3 slashes as in file:///foo.txt
It is unusual in texts, of course, but specifying the scheme (e.g. http) and omitting the host name asks the already known host via a (possibly different) scheme for the path, which then begins after the colon. One slash instructs the server to look for the path beginning from its document root. If there is no slash after the colon, the current directory is used. As said: this is all pretty unusual in normal text. Purodha ------------------------------------------------------------------------------ _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel