View Full Version : A question about the URL= command
04-29-2001, 11:33 AM
Why is it necessary to include the http:// in a link to a website? If you don't, it defaults a bunch of boards.straightdope.com garbage. Is this a bug? Or is that the way it's supposed to be?
04-29-2001, 11:41 AM
It's not a bug. If you don't include the "http://" part, the vB software assumed it is a relative URL instead of an absolute one. The same rule applies to writing regular HTML. If you are doing an absolute URL you have to include the "http://"
04-29-2001, 12:11 PM
Using HTTP (Hyper Text Transfer Protocol) in a link tells the browser that the document being linked to is a HTML document. HTTP indicates the protocol to be used to access the target. It's generally good practice to specify the protocol to avoid confusion; hence, for example, using FTP or TELNET where appropriate instead of HTTP.
04-29-2001, 04:36 PM
You're right that just http://www.xyz.com should be enough.
The majority of boards, and almost all email software, will convert that into a live link (absolute and not relative).
So, while it's not exactly a bug to require http, it is non-standard.
04-29-2001, 04:41 PM
Hey, maybe you should check that again.
In the post above I had typed www.xyz.com
and it converted it correctly to http://www.xyz.com
04-29-2001, 06:52 PM
Yes, "ww_w.straightdope.com" will become http://www.straightdope.com
However, if we put it in the fancier The Coolest Site On The Web (www.straightdope}Coolest Site On The Web[/url] form, it becomes [url="www.straightdope.com). Click it. It won't work. It needs the "http:\\" in front of the web address.
04-30-2001, 02:41 AM
Ummmm...sorry, Jasper, you caught the same thing I did with your link. How about that?
04-30-2001, 02:42 AM
oh, like you said. It won't work. Duh!
04-30-2001, 05:15 AM
Incidentally, to write tags that look correct, break them up with other tags. To get [url="http://www.straightdope.com"] to appear, type [url="http://www.straightdope.com"].
04-30-2001, 08:59 AM
Thanks. Smartass. ;)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.