views:

210

answers:

3

I understand with dashes once can search for keywords in different order.

What if my keyword has a space in it like

real estate
or
New York
Should I use underscores in this case?

If I do a Google search for

New_York
Google hints me:

Did you mean: New York

There is clearly a difference.
Even capitals seems to make a difference, looking at the search results..

A: 

The best answer is always be as accurate as possible. In content if it is usually capitalized then capitalize it. In the url I would say lower case everything as they should be case insensitive. As for hyphens or underscores there isn't any seo difference so I would go for hyphens because they're more aesthetically pleasing.

Rob Young
The URI path is case sensitive.
Gumbo
+6  A: 

If you're wondering about the SEO difference between dashes and underscores in URLs, Google at least treats dashes as spaces and underscores as part of the phrase. Here is an article about it. (Another method that works just as well as dashes is the plus sign. If I'm not mistaken it is the default for many URL-encoders).

This topic about which character to use for wordspacing is confusing and discussed at length on many blogs. It gets even more confusing when Google recently proclaimed that it will now treat underscores as wordseperators, but it appears it hasn't happened.

If you're wondering about how to do the mod_rewriting from underscores to hyphens, then there is post on AskApache about that.

About capitalization, the URL path should probably be in lowercase at it is easier to type, but on the other hand, it has also been shown that capitalization of your URL path improves readability, so that is something to consider as well. Also, some claim that it matters to search engines while others claim it doesn't, further more, it seems different search engines treats it differently.

Hostnames are case-insensitive but adding capitalization may increase readability in some cases, otherwise there is no difference. If you are worried about capitalization in meta-data, here is an article about that. Nonetheless, you can use flags when rewriting URLs to be case insensitive.

If you're wondering about the typographical difference between dashes and hyphens, there is quite a difference there. In this context dashes is probably the right way to go.

mqchen
A: 

There is a Matt Cutts video (check his channel in youtube) where he explains the underscore is used en programming languages, scripts, libraries, etc. So they tend to think the underscore is not a separator but a junction. If you are separating words, you should use hyphens.

Alex Angelico