Hyphens and underscores and pipes – OH MY!
Welcome back, hope you are learning lots from my series of SEO Tips. This week we’ll take a look at some common methods of separating words in your URLs and page titles, and which should provide you the best results in the search engine result pages (SERPs).
Separators in URLs
Depending on how long the developer has been creating pages, how they were trained and the system they use, they often develop a favorite method (right or wrong) and stick with it. Unfortunately for me, my coding skills were developed before the ‘net took over the world and my brain still wants to use underscores as separators. I’ll explain why that’s not a good idea shortly. But, my point is that you may see different developers doing different things, and having no idea that what they are doing is right or wrong – it’s just the way they have always done it.
Some people just smoosh all the words together like “PortlandMaineHomeSales.php”, which to us humans looks OK, but Google will see this as one big word. Don’t do this if you can help it.
People who started creating documents after Windows (and Macs) gained popularity often want to use spaces in their file names. In most cases, web servers and browsers (firefox, internet explorer, etc.) can handle spaces fine and will deliver the pages. However, spaces get translated to “%20″ by the browser, this makes the page URL look confusing for your visitors. For example, you might create a file named “four bedroom ranch style homes.php” on your web site. It will load just fine most of the time, and the engines will see each word individually. However, when displayed to your visitors, it will look like this; “four%20bedroom%20ranch%20style%20homes.php”. Not so nice to look at, is it? Additionally, the “%20% is saved by analytics programs making it difficult for you make heads or tails of your traffic.
I’ve already told you that using the underscore “_” character is a bad idea. This is because Google treats the underscore as a connector, not as a separator. For example, in a URL you may have something like “/quahog_rhode_island_home_sales/”. To us humans it reads fine, we can clearly see there are five distinct words there. However, Google just sees one big word. As such, this URL will not be returned for a query of “quahog rhode island home sales”. Well, that’s only half right – the page might be returned, depending on its content, but the URL will not contribute to its success in the SERPs.
That just leaves us with the dash, or hyphen “-“. As you may have guessed by now, this is the preferred method of separating words in your file names and URLs. In one of his webmaster videos, Matt Cutts tells us that if we are already using underscores, and they are working fine – leave them alone. However, he does say Google prefers dashes.
Separators in page titles
When it comes to page titles, all of the rules above also apply. But there are a couple additional characters that people will sometimes use. The ampersand “&” and the pipe “|”. Google treats each of these as a word separator, so either one is fine to use. As with all things Google, Matt Cutts hints in another video that it’s best to do what your users like.
Separators in domain names
When it comes to domains, Google does things a little different. Because domains are so important, and (sometimes) difficult to acquire, Google put some extra steps in the algorithm when it comes to processing them. Unlike in directory & file names, Google is able to recognize when multiple words are squished together in a domain. I’m sure that they prefer they be separated by dashes (less time required to analyze the words), but it is not required and there is not impact on rankings. It is also easier to communicate your web address to someone when dashes are not used. Most people understand the spaces are omitted when you tell them a domain name, so when you say “hey, take a look at today’s agent genius dot com”, they know to visit agentgenius.com. Put that dash in there and it’s not so clear, perhaps even a little confusing to have to say “go checkout the latest post on agent dash genius dot com”. Obviously, we can’t always get the domain we want without using hyphens, but whenever possible I recommend you avoid them.
There you have – word separators in a nut-shell. No geekery and hopefully not too much controversy for the commenters 😉



