URLs: Dash vs. Underscore

lubos hasko picture lubos hasko · Sep 23, 2008 · Viewed 84.6k times · Source

Should it be /about_us or /about-us?

From usability point of view, I personally think /about-us is much better for end-user yet Google and most other websites (and javascript frameworks) use underscore naming pattern. Is it just matter of style? Are there any compatibility issues with dashes?

Answer

James Lawruk picture James Lawruk · Feb 23, 2010

From Google Webmaster Central

Consider using punctuation in your URLs. The URL http://www.example.com/green-dress.html is much more useful to us than http://www.example.com/greendress.html. We recommend that you use hyphens (-) instead of underscores (_) in your URLs.