Re: aliases
Nils Kassube <[email protected]> Wed, 2 Aug 2006 15:46:40 +0200
| Newsgroups | gmane.network.wwwoffle.user |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 01 August 2006 08:58, Igor Nikanov wrote: > > You could try > > http://g/g = http://www.google.ru/linux > > instead. > > http://g/g ???? > > are you sure ??? Yes - I tried it with Firefox or Konqueror (don't remember which one). > gmm, it's very strange alias :( Yes, it is strange, but http://g.g is strange as well :) The reason why http://g/g works but not http://g.g is the way how WWWOFFLE handles URLs. As far as I understand it (without rreading the source code), WWWOFFLE separates the URL in it's various parts which are described in wwwoffle.conf: # For the purposes of this explanation a URL is considered to be made up of five # parts. # # proto # The protocol that is used (e.g. 'http', 'ftp') # # host # The server hostname (e.g. 'www.gedanken.demon.co.uk'). # # port # The port number on the host (e.g. default of 80 for HTTP). # # path # The pathname on the host (e.g. '/bar.html') or a directory name # (e.g. '/foo/'). # # args # Optional arguments with the URL used for CGI scripts etc. # (e.g. 'search=foo'). When your browser requests the URL http://g.g there is a protocol (http) and a host name (g.g). As there is no path and no args, WWWOFFLE adds a '/' to your URL. Now the URL is http://g.g/ and afterwards WWWOFFLE replaces the alias part which gives the final URL http://www.google.ru/linux/ which is not what you want to get. However if you use http://g/g as the alias part there is a path given and WWWOFFLE will not add a '/' to your URL. Regards, Nils