Eva van Emden (she/her), freelance editor

Certified copy editor and proofreader

eva@vancouvereditor.com

December 25, 2011

What changes can you safely make to a URL?

URLs don’t look so good in running text: they start with an incomprehensible code, they contain strange-looking punctation, and they run together all-lowercase words that are next to impossible to read. To try to make them look a little nicer, you may be tempted to leave some parts off and gussy up the rest with some camel casing. But how do you know what you can safely change and what will break the link? Here is what you can and cannot safely change.

Parts of a URL

Without getting into too much detail, the structure of a URL is something like this:
protocolsubdomaindomain nameTLDpath
http://paulgraham.com/hp.html
http://philip.greenspun.com/panda
http://philip.greenspun.com/images/pcd0803/florence-bike-6.4.jpg
For our purposes, when I say “hostname,” I mean the domain name including any subdomains (plus the second-level domain if present) plus the top-level domain (TLD). For example, google.com, scholar.google.com, or cra.gc.ca: everything that comes before the first slash.

Editing the URL

So there you are, faced with lots of unsightly and incomprehensible “http”s and forward slashes. How can you make these URLs fit into your text a little better?

Removing the protocol descriptor

Can you remove the http://? Yes.
http://www.google.com = www.google.com

The http in the URL stands for “hypertext transfer protocol,” which is the protocol used by the World Wide Web. It’s there to tell your browser that you are asking for a web page and that the browser should use the HTTP protocol as opposed to, say, FTP (file transfer protocol). But it’s reasonable to expect that any browser is going to assume HTTP as a default, so feel free to leave this off.

If the protocol descriptor is anything but http:// (for example https:// or ftp://) you should leave it in. Otherwise, browsers will assume that it’s an HTTP request and because it isn’t really, the request will fail (if you’re lucky, the server will be kind enough to redirect the request to the right URL, but it’s not a good idea to rely on this).

Changing capitalization

Can you add or remove capitalization? Sometimes. In the hostname, yes:
paulgraham.com = PaulGraham.com
but in the path, no.
slate.me/tbFnWs ≠ slate.me/tbfnws

For the hostname, it’s OK to have a house style that puts capital letters in the hostname (Scholar.Google.com), or even uses camel casing (OurCompany.com). However, the capitalization in the path (the section after the first slash) should not be changed: slate.me/tbFnWs is not the same as slate.me/tbfnws.

The reason is in the way that URLs are processed. The first thing that happens after you type in a URL and press Enter is that your browser sends a request out to the internet. DNS servers accept this request and translate the hostname (philip.greenspun.com) into an IP address (64.95.64.40), which is the address of the server that will have the files you’re looking for. Once the request reaches the server at 64.95.64.40, the server uses the path part of the URL to look through its file system and return the file you requested (/images/pcd0803/florence-bike-6.4.jpg). Only some web servers take the case of the path into account, but you shouldn’t assume that it won’t matter.

As a matter of style, use capital letters very sparingly. Traditionally URLs are all lowercase, and to the purist, capitalization looks funny. Keep your caps for the beginnings of words (PaulGraham.com) and never capitalize the whole URL or the top-level domain name (.com, .ca, etc.).

Removing the www

Can you add or remove a www on the beginning of a URL? No. At least, only sometimes.
www.pashley.co.uk ≠ pashley.co.uk

The www is a subdomain, just as the scholar in scholar.google.com is. If you take the subdomain designation off, for example to change www.google.com to google.com, you are changing the domain name.

OK, I admit that most (almost all) servers are configured to treat a domain name with and without the www subdomain designation the same way by forwarding traffic from one to the other, so you can usually get away with changing this. But it’s important to understand that if you add or remove a www it’s not the same domain name. If you are determined to add or remove a www, test the new form of the URL to make sure it works.

Try the URLs above and see what happens. The version without the www is invalid. If it works for you, you might be using a browser with aggressive “domain guessing.” That’s fine, but it’s far from every browser that does that: my versions of Chrome and Firefox won’t guess the URL in the above example. By the way, I’m not holding up the above sites as an example of bad design or configuration. I think it’s fine to accept only one version of your domain name, but editor beware.

Removing a terminal slash

Can you remove a slash from the end of a URL? Yes.

The final slash in each of these URLs can be omitted: www.google.com/ or philip.greenspun.com/panda/.

Edit, October 2022: I used to say that there was no web server in the world that wasn’t configured to behave as if there was a slash on the end of the URL, but I found one. Surprisingly, https://www.vlada.gov.sk/koalicia-vita-schvalenie-reformy-nemocnic/ behaves differently from https://www.vlada.gov.sk/koalicia-vita-schvalenie-reformy-nemocnic, and the latter gives a 404 not found error. So I have to amend my advice here to say that it’s almost always OK to remove the final slash.

But don’t these changes only affect people who use out-of-date browsers?

The pitfalls I’ve described above result from the way the DNS servers and web servers on the internet work, not the features of the user’s browser. However, some browsers use “domain guessing” to try other forms of a URL if the first request fails, so they’re more likely to be able to work around missing information in a URL. To make sure the URLs you print works for all your readers, be conservative about how you change them.

November 29, 2011

A scam that targets editors

(Updated February 2021.)

This morning I got a scam request to write an article for an upcoming workshop. The writer mentioned having a speech-distorting condition called apraxia to explain why they preferred to use email and SMS rather than phone conversations. This is fine, but once I asked for more information about the project, the classic characteristics of the scam started to become clear, and when I Googled a few key items in the message plus the word “scam,” I found other people talking about this exact format of scam.

This isn’t the first time I or an editor I know has been approached for a cheque overpayment scam. Here’s how it works: the message is about an editing or translation job, typically with a very quick turnaround time. The client pays by cheque. After the payment has been made, the client “discovers” that they have overpaid and asks the editor to send back the overpayment, or the payer asks the editor to send some money on to another payee. After the editor cashes the client’s cheque, it turns out to be invalid.

Signs that an editing job might be a scam

Watch out for the following clues that something might be wrong with a message about a job.
  • There are signs that the client is contacting many people at the same time. The email you receive might not be addressed to you by name, or you are bcc’d on an email addressed to someone else.
  • The information about the client is incomplete or inconsistent. For example, it’s signed “Sandy Smith” but the email address is “joe-bloggs@domain.com.” Or the name of the person writing to you doesn’t match the byline of the attached article they say they wrote.
  • The client doesn’t seem to care about who you are and what your qualifications are, and they don’t seem to care about the quality or details of the project. In my experience, this has been the tip-off. Real clients who want to pay you to work for them really care about their project and are anxious to hire someone who will do a good job. When you ask for more information about the project, they’re usually eager to give it to you. The scammers come across as strangely hurried and indifferent.

How to protect yourself

Be observant when you get email from a potential new client. Try searching online for the name and email address and see whether they are connected to an existing person. Look for details that show that the project is a real project. And be cautious with cheques from new clients you don’t have complete confidence in.
  • Make sure the name of the issuer of the cheque matches the name of the client. Do a web search on the name of the client and name of the cheque issuer.
  • Be very suspicious of a cheque for too much money. The Canadian Anti-Fraud Centre recommends against accepting any cheque for more than you are owed.
  • Be aware that just because the money is made available in your bank account, that doesn’t mean the cheque was valid. According to a CBC article on this scam, “Depending on how good the counterfeit is, it can take weeks for a financial institution to detect the fraud. By then, the scammers are long gone with the money, and the victim is on the hook for the amount on the cheque.”
  • Consider using PayPal, Interac e-transfer, or bank transfers.
  • You can decrease your risk by asking for a deposit before starting work, but again, consider that bad cheques can take time to make themselves known.

Further reading

November 22, 2011

Anne McCaffrey

Dragonsong cover I was sorry to hear that Anne McCaffrey died today. I was about twelve or thirteen when I read Dragonsong. It must have been one my first forays into speculative fiction; I remember the strange words—“sevenday,” “blackstone”—and the foreignness of the names of the characters and places. I struggled to understand the mysterious Thread, but I didn’t have any trouble imagining the dragons. Giant, gentle, flying, talking animals don’t need much explanation.

In the years after I read Dragonsong, I read almost all of the other dragonriders books, as well as a selection of her other books. Her characters were thoroughly imagined and their relationships had depth and richness. I appreciated that the people in her books weren’t threatened by mystical forces of evil; they were threatened by natural forces, and by their own inability to work together to solve their problems. They were saved by personal courage and sacrifice.

I still have a selection of my favourite dragonriders books on the shelf, including the lovely edition of Dragonsong shown here. Thank you, Anne McCaffrey.

November 1, 2011

Try hand-kerning some tricky pieces of text

Badly kerned letters This online kerning exercise presents you with words in different fonts and invites you to drag the letters around for the best spacing. Then see how your solution matches the typographer’s solution.

Thanks, Christina Vasilevski for the link.