Are there any benefits to having dashes in file names?
-
Through searching, I can find lots of discussion regarding "dash vs underscore", but am having trouble with an even simpler question:
Is there any SEO difference between using
http://www.broadway.com/shows/milliondollarquartet.php
vs.
-
A lot of coders like giving filenames underscores rather than dashes, because when you select (doubleclick) a filename_like_this all the text is selected, whereas a filename-like-this may only have part of it highlighted - so to me, an underscore is more akin to 'treat this like a word' and a dash is 'treat this like a space' - and either is better than %20!
For SEO though, the dash=space is worth it where:
-
the URL string is long (thisisnotaseasytoread in the address bar, this-is-much-easier-to-comprehend) - I think that helps users, which in turn signals to Google that you're being helpful
-
if the concatenation of the words would be confusing to a stemming programme - see here for examples http://independentsources.com/2006/07/12/worst-company-urls/
-
if someone wanted/had to manually type a url, a dash is quicker/easier as you don't need the shift key (which you do for an underscore)
-
if someone shares (pastes) a raw, long URL, with dashes in you have a chance it will wrap in a blog or wherever -
that looks dreadful, whereas you might get away with high-on-the-hill-stood-a-lonely-goatherd
- I find that it also helps with link-naming consistency, it's easier for you to spot your own typos or linking errors (so fewer 404s to hunt down)
Sorry, must dash
-
-
From what I've come to understand, dashes are seen as spaces by most search engines, so it helps to delineate your phrase. milliondollarquartet would be seen as one word, while million-dollar-quartet would be seen as 3 and would be more readable by both users and search engines, and it would help you get some SEO juice for the phrase, while milliondollarquartet would probably not be searched upon.
That having been said, I'm still fairly new to SEO, so hopefully you'll get more answers. But that's been my understanding thus far.
-
A smart robot can parse that out using algorithms called stemmers... But what about less sophisticated robots? Will ask.com or lesser known SE's get your keywords right without the dashes? What about a combination of words that can be separated in different ways to give different meaning?
And what about human readers? Which is easier for you to read?
Dashes and underscores are the URL equivalent of spaces. They help human readers and robot crawlers parse out what your URL is supposed to be.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Domain name in URL
Hi we are targeting local cities across the UK with landing pages for our website. We have built up a few links for https://www.caffeienmarketing.co.uk/bristol/ and recently advised that I should change the URL to https://www.caffeienmarketing.co.uk/marketing-agency-bristol/ and 301 directing the old one 2 questions really: 1. is there any benefit in doing this these days in that this is the main keyword target we have for this page? 2. Do I get 100% benefit for all the links built up on the old page
Intermediate & Advanced SEO | | Caffeine_Marketing0 -
Regex in Disavow Files?
Hi, Will Regex expressions work in a disavow file? If i include website.com/* will that work or would you recommend just website.com? Thanks.
Intermediate & Advanced SEO | | Fubra0 -
We have set up our H1 to contain the product name - it used to be our Company name all the time - would this affect our sales
We noticed recently on our site - that our H1 tag was the Company Name - we changed this to be the product name - our products would be searched for by all or part of the description. Our sales have dropped of the days since we changed it, could it be a result of this change ? Is it best to have the H1 tag as the product name ?
Intermediate & Advanced SEO | | CostumeD0 -
What are the pros & cons of recycling an old domain name?
Hi, Old domain name is about books and book buyback. It had about 1000 pages at one time, been around since 2006, and still shows in Open Site Explorer as 86 links from from 46 domains, PA 43 DA 35, spam score of 4. The 4 evidently relates to low number of internal links and no contact info. The domain name's ownership hasn't changed, but for the last year has either not been up at all or only the homepage in the last couple of months. Now the idea is to maybe re-purpose it for place rating content... no more book content... totally different subject matter. Is this an organic search advantage or would it be better to start fresh with a new domain name? Is Google going to have a harder time seeing it as relevant for a new subject (with good new content) or seeing a new site as important? Thanks... Darcy
Intermediate & Advanced SEO | | 945010 -
What should I block with a robots.txt file?
Hi Mozzers, We're having a hard time getting our site indexed, and I have a feeling my dev team may be blocking too much of our site via our robots.txt file. They say they have disallowed php and smarty files. Is there any harm in allowing these pages? Thanks!
Intermediate & Advanced SEO | | Travis-W1 -
Domain Name Change - Best Practices?
Good day guys, We got a restaurant that is changing its name and domain. However they are keeping the same server location, same content and same pages (we are just changing the logo on the website). It just has to go a new domain. We don't want to lose the value of the current site, and we want to avoid any duplicate penalties. Could you please advise of the best practices of doing a domain name change? Thank you.
Intermediate & Advanced SEO | | Michael-Goode0 -
Missing Title Tags on Include Files?
GWT is telling me 3 of my include files (Contact Form - Header - Footer) are missing a Title Tag. This has never happened to me before and don't know how to tackle it. On the other hand the warning refers to a subdirectory of my site to these respective include files… The main directory, with literally the same html structure and no Title, returns no errors. Any ideas as to why this error now? or how to fix it? Thanks,
Intermediate & Advanced SEO | | dhidalgo10 -
Duplicate internal links on page, any benefit to nofollow
Link spam is naturally a hot topic amongst SEO's, particularly post Penguin. While digging around forums etc, I watched a video blog from Matt Cutts posted a while ago that suggests that Google only pays attention to the first instance of a link on the page As most websites will have multiple instances of a links (header, footer and body text), is it beneficial to nofollow the additional instances of the link? Also as the first instance of a link will in most cases be within the header nav, does that then make the content link text critical or can good on page optimisation be pulled from the title attribute? I would appreciate the experiences and thoughts Mozzers thoughts on this thanks in advance!
Intermediate & Advanced SEO | | JustinTaylor880