Forum Moderators: Robert Charlton & goodroi
I had not thought about this, but apparently blue_widgets.html is considered 1 word, where as blue-widgets.html is considered 2 words. So for multi-word titles used as static HTML names, it looks like using a hyphen is far better than using an underscore. A brief look at the SERPS does confirm this.
Search engines should treat underscores as :-
spaces in documents
binders in searches (e.g. "my world" == my_world)
However, so far as I am aware, search engine designers haven't figured this out yet.
Kaled.
Did I mention that dots work the same way as hyphens, and look nicer too?
If you try a search for each of these you get different results.stylecodes
style-codes
style_codes
style.codes
Easy test:
Build a few pages, e.g. redwidget.com/redwidget.html, redwidget.com/red_widget.html, red-widget.com/blue.html. Don't use the words "red" or "widget" in the page copy. Use some random text to link to those urls.
Wait till the three pages are indexed.
Now, run "site:redwidget.com red widget" in Google. It will return 1 match: red-widget.com/blue.html.
Hoever, that was not before other people had seen it, I guess, as there are now several (unanswered) questions about dots in URLs that have been made in later postings.
Hopefully they will find this thread...
and then I saw that since I was on a ms server it was automatically changed to 20% or whatever in between the words. Then I found that unix servers would not read that at all. Gad my learning curve was painful.
<edit to add>
I just googled the matt cutts underscores and dashes thing. It was his blog. Not GG.