Tell me more ×
Answers OnStartups is a question and answer site for entrepreneurs looking to start or run a new business. It's 100% free, no registration required.

I have couple of questions regarding SEO for URLs

  • Does hyphen vs. underscrore in the urls affect SEO?

e.g. www.mysite.com/my-first-post vs. www.mysite.com/my_first_post

  • Does capital letter vs. small letter in URLs affect SEO?

e.g. www.mysite.com/My-First-Post vs www.mysite.com/my-first-post

share|improve this question

closed as off topic by Jesper Mortensen Apr 16 at 15:16

Questions on Answers OnStartups are expected to relate to startups within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

5 Answers

Google treats hyphens as spaces, which is good for getting your keywords into your URL (Google loves this). It does not do the same with underscores, so you definitely want to use hyphens instead of underscores.

Google doesn't particularly care whether you use capital letters or not, but there are a couple of things to keep in mind. First is that some web servers are not case sensitive. By that I mean that www.mysite.com/Hello will return the same page as www.mysite.com/HELLO and www.mysite.com/hElLo. This is good, because when other people link to your site, they may not get the link exactly right. The second thing to consider is that by convention, urls with lower case letters are standard. If you violate this convention, some people that link to you may use all lower case letters, and if your web server IS case sensitive, the link won't work. What I recommend is that if you have a choice, use a web server that IS NOT case sensitive.

Another thing to think about related to uppercase/lowercase is that it's harder to pick out separate words when they all run together in the same case. This is typically only an issue with print advertising (billboards, brochures, etc.). In these cases, I would want to print www.MySite.com rather than www.mysite.com, since it's much easier to pick out the individual words when they are capitalized.

share|improve this answer
I agree. According to Google's Matt Cutts (mattcutts.com) (I attended his presentation in SF last year), hyphens are better than underscores. – OutputLogic Feb 4 '10 at 4:05
2  
Good info, but please cite sources to provide some extra certainty. Google's Matt Cutts on hyphens vs. underscores: mattcutts.com/blog/dashes-vs-underscores (original explanation) & youtube.com/watch?v=Q3SFVfDIS5k (most recent). – Jay Neely Feb 4 '10 at 4:08
Edit this answer to include sources suggested in the comment (or others), and I'll upvote it. – TRiG Oct 25 '11 at 16:07

Yes and yes. Best practise is to use hyphens and lowercase. Simple as this.

share|improve this answer

While lower-case with hyphens would be how I would go now, I don't think it matters as much from a pure SEO perspective.

If you search Google for a college on my site Vast Rank with hte following search, you can notice Google highlights the word Stanford just fine in the URL (I don't use hyphens or lowercase).

"stanford site:vastrank.com"

So to answer the original question, I don't believe hyphens or capitalization affect SEO from a ranking standpoint, but I do think it may marginally help with click through rate if it is more readable.

Cheers, Jon

share|improve this answer
  1. There is zero SEO benefit for hyphens vs. underscore. Hyphens might be best practice for any new URLs created, but it is NOT worth changing your existing URLs to hyphens if they are currently underscores.

Watch Matt Cutts answer this exact question: http://www.youtube.com/watch?v=AQcSFsQyct8.

  1. Lower case is better than upper case, but again, it's not worth changing any existing URLs as that may have an effect on search engine indexes. However, ALL websites of SEO consultants have lower case URLs. SEO sites are always good to mimick as they almost always follow best practices. BUT, as Micahel pointed out, alternating case for DomainNames.example is best.
share|improve this answer

Agree with Michael Trafton, Hyphens are more SEO friendlier than underscore in the URL. So, You have to use Hyphens to separate words from each other.

And the second one is that search engines (or web servers) consider the same meaning either that words are in capital or small letters. But keep remember that some web servers consider that words two different as they differ in font (capital and small fonts). To avoid that confusion always try to use small fonts.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.