Blogging Etiquette: Add a final slash to your URLs

URLs can be quirky. Creating a link in a post is easy enough, but filling in the website field when leaving comments on other blogs can be confounding. For instance, I’m never sure if I need to enter the http:// part — the Web’s inventor has apologized for the excessive punctuation — but I do always include the final trailing slash after the domain name: http://urbanyukon.com/

And, to be polite to your link-clicking guests, you should type that final slash too. The reason is that the web server treats http://urbanyukon.com and http://urbanyukon.com/ differently. The slash-less form is actually incorrect, and so the web server is forced to respond with a message to the browser to re-request the same URL, but with the added slash at the end. That’s two extra messages flying to and fro just for the sake of one measly slash.

If the URL continues past the domain name (e.g., http://urbanyukon.com/blog/2009/12/13/blogging-etiquette-add-a-final-slash-to-your-urls/), then there may or may not be a slash at the very end — don’t add one in this case if you’re not sure.

Comments are closed.


Switch to our mobile site