views:

91

answers:

2

In URL rewriting, i am quite confused that should i use underscore (_) OR hyphen (-) to replace spaces. According to this and this, hyphen should be used. But wikipedia uses underscores like en.wikipedia.org/wiki/Computer_network_programming. so which should be used?

A: 

You can use whatever you want. It doesn't matter (from a technical point of view; there may be other reasons to choose one over the other).

Noon Silk
check the matt's blog. he has some explanation.
coder
@coder Yes ... He has some information if you care about SEO specifically related to how he says Google implements things at the time he wrote that entry. Nevertheless, the accuracy of my statement remains, in general.
Noon Silk
Try a search in google for web_site vs web-site. As far as seo is concerned, there is a difference...
Byron Whitlock
@Bran Whitlock - I agree, I probably should've specified that I meant there was no *technical* reason to choose one over the other.
Noon Silk
I gave you a +1. All that matters is conformance to RFC 3986 and RFC 3987.
It does matter! Except you don't care about SEO and number of your visitors. Search engines like dashes far better.
sibidiba
+4  A: 

use dashes

read from the matt's blog http://www.mattcutts.com/blog/dashes-vs-underscores/

coder
@coder matt's blog says that dashes are considered 1 word, while hyphen represent multiple word, but google consider web-site as a single word.