Make Sure You Check Your Links For That Magical HTTP

One error I am seeing a lot of webmasters and bloggers making is forgetting to put that little “http://” before links. That little chunk of text is really really important.

Most (if not all) web browsers that encounter links without “http://” will not think it is a link to an external site, instead the browser will think it is a relative URL.

Or in plain english:

If http://www.example.com links to www.google.com (without http://) then your web browser will load “http://www.example.com/www.google.com” if you click on the link. If you put on the little http:// the page will load Google as expected.

Just make sure that little http:// is on there, it can save a lot of headaches.

Please subscribe, or else I will cry. Do you really want to make a programmer cry?

2 Comments

  1. MacBros Says:

    Heh. I never knew you could do it without the http://

  2. Jeremy Says:

    Yeah links without http://... are relative links. like /home would be http://www.example.com/home, /home/blog/bla would be http://www.example.com/home/blog/bla, etc. I used to use them a lot, but I use them less now. Mostly because if you use relative links in your blog posts feed subscribers (via feedburner) won’t be brought to the correct page if they click on it.

Leave a Reply

Note: By submitting your comment you agree to this blog's comment policy.

If you want a little icon next to your name - sign up for one at Gravatar.