SEO URLs: hyphen vs underscore

This is a recurring question and I don’t always remember why I prefer hyphens, so here’s the answer:

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.

Source: Google support

It turns out that, at least for google, the underscore works as a concatenator for words.

There’s also a video of Senior Google Engineer Matt Cutts, where he explains exactly this.

Another reason, aside for the Search Engine Optimization is this:

If your URL contains underscores the link will look similar to this:

http://www.tips_for_instant_weight_loss.com (http://www.tips_for_instant_weight_loss.com)

Whereas if your URL contains hyphens, the link will look similar to this:

http://www.tips-for-instant-weight-loss.com (http://www.tips-for-instant-weight-loss.com)

A user may mistake the underscores for spaces, as the underlining in the link hides the underscores. On the other hand, hyphens are clearly visible, so users are more likely to remember to type them.
So, the use of underscores in URLs impacts usability as well as SEO.

Source: Woorank

And if you are interested in the WHY it works this way, here it is Matt’s post about the WHY.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s