Forum Moderators: phranque

Message Too Old, No Replies

Double // in URL

         

grandpa

10:44 pm on Jun 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Would someone try to explain the purpose or intent of a URL that looks like this:

http://www.example.com//page.html

It just looks malformed to me, but it works. [cynic] I suspect a more sinister purpose.[/cynic]

sonjay

11:11 pm on Jun 3, 2004 (gmt 0)

10+ Year Member



I just tested it on one of my sites .... and yeah, oddly, it works.

I'd guess a typo.

sned

11:28 pm on Jun 3, 2004 (gmt 0)

10+ Year Member



Interesting seems that www.example.com./page.htm works too.

grandpa

11:57 pm on Jun 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I've looked over the rest of thier site and that was the only page like that. Was wondering if it might have been set up that way to stop PR or some such silliness, but it does appear to be nothing more than a typo.

PhraSEOlogy

3:33 am on Jun 4, 2004 (gmt 0)

10+ Year Member



Grandpa,

I generate dynamic URLs using perl and if you get your concatenation messed up - you can often end up with too many //
nothing sinister - just sloppy programming.

g1smd

7:59 pm on Jun 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I see that in some category paths at dmoz.org from time to time.

If you see any like that there, please report them back to editors or staff.

drbrain

8:04 pm on Jun 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



sned:

All domain names end in a '.', but software is friendly to you and lets you drop it. The '.' is used to distinguish between a full domain name and a domain name using a search prefix.

ergophobe

3:46 pm on Jun 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I suspect that like a previous poster said, there is an error in the logic of their script.

That said, it is perfectly legal. Some style manuals recommend printing urls like this and put the linebreaks between the slashes as it makes it easier for people to reconstruct the url.

Note that the 15th edition of the CMS does not advise this.

Tom