Dashes vs. underscores
mattcutts.com
mattcutts.com
http://www.google.com/search?hl=en&q=_maxint
Gives "Showing results for MAXINT. Search instead for _MAXINT." Clicking on the second link still searches for MAXINT. You have to use +_MAXINT as the search query for the search to work (and it's not even case-sensitive).
Maybe Google treats underscores the same way as hyphens now that it's mainstream and the majority of people don't really care about the semantic distinction between the two? The post is 6 years old after all.
Here is an article from 2007 on Matt's blog: http://www.mattcutts.com/blog/whitehat-seo-tips-for-bloggers... It says, at that time, Google was looking into making underscores word separators.
Later, in 2009, Matt mentioned in a Google Webmaster Help video that he'd still recommend dashes if you can, but don't worry about it if underscores are working for you. They might still get around to making underscores separators: http://www.youtube.com/watch?v=Q3SFVfDIS5k
As of 6/20/2011, Google still recommended using Dashes in URLs here: http://www.google.com/support/webmasters/bin/answer.py?answe...
For instance, search for a phrase like
'imag' leader
You get "Showing results for 'image' leader. Search instead for 'imag' leader."Change them to double quotes, and it actually finds "imag". Google suggests "Did you mean: "image" leader", but does not automatically change the search as in the other instance.
However, search for something like "image.url", and it is the same as searching for "image url" (not imageurl). Google appears to replace the '.' with a space.
It's an underscore not a dash
Huh?
It's the the same key as the dash, only hold shift.
Huh?
See the dash key?
Yeh.
Just hold shift when you press it.
Huh?
Do you have our fax number?
That's why you don't use underscores in a URL. Of course, today nobody uses dashes either if they can help it.Outside of programming, how often do you use the underscore key?
Underscores aren't valid characters in a domain name by the way.
For example, I went to Google News, picked the top story, and looked at the story URLs. Some are opaque, but many look like this:
http://www.star-telegram.com/2011/07/02/3196643/exxon-mobil-...
If you're optimizing for search, the dash-separated words are very common. Google likes you even better if you make the most important thing first in the URL. E.g.:
http://www.sidereel.com/The_Big_Bang_Theory/season-4/episode...
dashes separate words, underscore is word character -- in common interpretation by, for example, Google Search.
When implementing any text search or matching, there's matter of what constitues word boundary. Obviously whitespace does, as do some punctuation; but exactly which punctuation should be considered word boundary? There is an document on the subject by Unicode Consortium: http://www.unicode.org/reports/tr29/
There is one important case where punctuation and whitespace do not constitue word boundary: the hyphen, as used for breaking word in hyphenation. In Unicode, U+2010 Hyphen, U+2011 Non-breaking hyphen and U+002D (Hyphen-minus, the usual `minus' character from keyboard, for backward compatibility with ASCII / ISO8859-*)
This has been the beginning of many hilarious conversations. (My first love was natural language processing. My second was Japanese, which treats every whitespace as a tragic waste of a place where you could have fit twenty three strokes.)
So remember, the next time you go to register a multi-word domain name, use dashes!