Is using hyphens in a URL to separate words good practice?
-
Hi guys,
I have a client who wants to use a hyphen to separate two words in the URL to make each work stand out.
Is is good or bad practice to use a hyphen in a URL and will it affect rankings?
Thanks!
-
Just to be clear, here we are talking about URLs and not the domain name because when it comes to domain name my personal advice is not to go fir hyphens as this is not a common practice plus its usually a practice of spammers to use shady domain names.
As far as URLs are concern it’s a wonderful idea as Lina said they are better than underscores.
Hope this helps!
-
Yes, no hyphens in the domain name. Thanks for clarifying, Donna.
-
Agree with what LindaLV has said, but want to be sure you're not talking about a domain name. Hyphens used when referencing a file or folder name is good. Hyphens in a domain name is less than ideal.
So, for example,
http://www.domainname.com/folder-name/file-name.html is good,
http://www.domain-name.com/foldername/filename.html is not so good.
Domain names should be short, memorable, preferably branded, and use no special characters.
-
Hyphens are definitely a good idea. They make the URL easier to read and more user-friendly. (See more about it from Webmaster Tools Help here.)
"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."
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
-
Use of the word Find in Title Tags
Hey, So i'm looking to make content that is optimized for Finding an injury lawyer in boston. The Phrase "Personal Injury Lawyers in Boston" get's a lot more searches than "Find Personal Injury Lawyers in Boston" but with the Find is it less competitive? The same thing goes for "Find lawyers in Boston" vs. "Lawyers in Boston." My question is, is it better to put the word FInd in front or not? Is there a downside?
On-Page Optimization | | RafeTLouis0 -
Content on ecommerce categories - good or bad?
We have a case with a client where they previously had content on top of their most important ecommerce categories. The content was well integrated and should in my opinion enhance the category experience, but after doing some A/B testing they proved to only decrease the conversion rates when sending traffic directly to those categories. Around that topic I have two questions: Is it a bad thing to put the content BELOW the categories? I need examples of categories where content and products are very well integrated and enhances the category experience - any tips?
On-Page Optimization | | Inevo0 -
Content with changing URL and duplicate content
Hi everyone, I have a question regarding content (user reviews), that are changing URL all the time. We get a lot of reviews from users that have been dining at our partner restaurants, which get posted on our site under (new) “reviews”. My worry however is that the URL for these reviews is changing all the time. The reason for this is that they start on page 1, and then get pushed down to page 2, and so on when new reviews come in. http://www.r2n.dk/restaurant-anmeldelser I’m guessing that this could cause for serious indexing problems? I can see in google that some reviews are indexed multiple times with different URLs, and some are not indexed at all. We further more have the specific reviews under each restaurant profile. I’m not sure if this could be considered duplicate content? Maybe we should tell google not to index the “new reviews section” by using robots.txt. We don’t get much traffic on these URLs anyways, and all reviews are still under each restaurant-profile. Or maybe the canonical tag can be used? I look forward to your input. Cheers, Christian
On-Page Optimization | | Christian_T2 -
Optimize URL
Hello, My website have been running over five years. I have just reviewed and seen some URLs had not good. It is http://www.vietnamvisacorp.com/faqs/who-need-visa-to-vietnam---1.html, containing characters "---1". Should I remove unnecessary characters "---"?. Thanks for any advice!
On-Page Optimization | | JohnHuynh0 -
Tool to creat a good XML sitemap
Hello lads, I need to creat a XML sitemap for a website so I can add to Google Webmaster and Bing Webmaster. What do you guys recommend? Tks in advance! PP
On-Page Optimization | | PedroM0 -
Which is Best Practice for creating URLs for subdomain?
My website is related to education. We have created sub domains for all major colleges, universities & Entrance exams like Gre, Toefl ETC. for eg: amityuniversity.abc.com (Amity is Name of University ) Now if have to mention city name in URL as well (college is located in multiple locations) amityuniversity-delhi.abc.com
On-Page Optimization | | rohanarora536
amityuniversitydelhi.abc.com Now my Q is can we use hyphens in sub domains if we have to add city name or shall we create without using any hyphens. In Directory structure we can always separate words with hyphens, can we follow same practice in subdomain as well Which is a best URL for subdomain amity-university-delhi.abc.com
amityuniversity-delhi.abc.com
or amityuniversitydelhi.abc.com0 -
Seeking URL Advice
Hey Moz Community, I'm looking for some URL structure advice for a new directory of a website. We're trying to rank for the term 'internships abroad in <country>'</country> We have roughly 100 pages targeting specific countries. Right now the URL structure is www.gooverseas.com/internships-abroad/china, but some of my colleagues believe this structure would be better: www.gooverseas.com/internships-abroad/intern-in-china. I personally prefer the shorter structure, but we couldn't come to any agreement so we thought we'd pose the question to the community. Any thoughts? Thanks!
On-Page Optimization | | dunklea0 -
Should one page with markers or six separate pages?
Hi - I'm working on a site that was set up with 6 bios on one page, with markers jumping to each person's name. I was thinking about separating those into 6 different pages, but not sure if that's the right thing to do. Advice about keeping the bios on one page vs splitting them up? (Am I more likely to rank for those peoples' names if I have a unique page, or is the one page url with each different marker in it, just as good?) Ranking well for those names isn't a huge goal of the site, but it would be nice to make the choice that would help with that rank. Thanks for your input Emma
On-Page Optimization | | emmas0