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
-
How to Structure URL's for Multiple Locations
We are currently undergoing a site redesign and are trying to figure out the best way to structure the URL's and breadcrumbs for our many locations. We currently have 60 locations nationwide and our URL structure is as follows: www.mydomain.com/locations/{location} Where {location} is the specific street the location is on or the neighborhood the location is in. (i.e. www.mydomain.com/locations/waterford-lakes) The issue is, {location} is usually too specific and is not a broad enough keyword. The location "Waterford-Lakes" is in Orlando and "Orlando" is the important keyword, not " Waterford Lakes". To address this, we want to introduce state and city pages. Each state and city page would link to each location within that state or city (i.e. an Orlando page with links to "Waterford Lakes", "Lake Nona", "South Orlando", etc.). The question is how to structure this. Option 1 Use the our existing URL and breadcrumb structure (www.mydomain.com/locations/{location}) and add state and city pages outside the URL path: www.mydomain.com/{area} www.mydomain.com/{state} Option 2 Build the city and state pages into the URL and breadcrumb path: www.mydomain.com/locations/{state}/{area}/{location} (i.e www.mydomain.com/locations/fl/orlando/waterford-lakes) Any insight is much appreciated. Thanks!
On-Page Optimization | | uBreakiFix0 -
What are the benefits of the URL meta tag?
We have too many meta tags and want to get rid of all the outdated ones. However, we don't want to eliminate valuable meta tags by mistake. So, before we say goodbye to the URL meta tag, we want to make sure we understand the pros and cons, if any. By the way, we are not referring to canonical URL tags, just URL as in:
On-Page Optimization | | GRIP-SEO0 -
Ecommerce category navigation structure -best practices
Hello, I've heard that there is a specific strategy for the best linkjuice distribution for categorizing an ecommerce site. How many links should there be on the home pages? Categories 1 deep? 2 deep? This client's customers don't like to go very deep, and they usually don't find our second page Thanks!
On-Page Optimization | | BobGW0 -
404 crawl errors with all url+domain
We have 187 crawl 404 errors. All urls on web make a 404 error that this http://www.domain.com/[.....]l/www.domain.com all errors added to the url, the url domain I put an example gestoriabarcelona.com/www.gestoriabarcelona.com
On-Page Optimization | | promonet
gestoriabarcelona.com/tarifas/www.gestoriabarcelona.com
gestoriabarcelona.com/category/noticias/page/7/www.gestoriabarcelona.com
gestoriabarcelona.com/2012/08/amortizacion-de-unaconstruccion/
www.gestoriabarcelona.com
[..] I don't know where can i find to solve errors Anyone can help me? Thanks0 -
Should I use rel=canonical in this case
Hi SEO pros, I am working on a website competing on the keyword "USA maps" and would appreciate your advice and comments on the issue below. The site has one major page for USA maps and like 5-6 smaller pages under different categories, e.g. US travel maps (under Travel Maps category), US travel guides (under Travel Guides), US atlases (under Atlases), etc. The smaller pages do not rank in search results and are not optimized well for any keyword. Here are my questions: #1. Do you think that if I add rel=canonical to the main USA maps page from all small pages that will help get higher ranking of the main page? #2 Or should I better try to optimize these small pages for the keywords they target (e.g. "US travel maps") and try to send link juice to the main page from text link within the content? Thank you,
On-Page Optimization | | ParisChildress0 -
Is it good to have dashes in url's
When using keywords in url's for internal pages, isn't it a good idea to use dashes or underscores in the url between the keywords?
On-Page Optimization | | BradBorst0 -
Absolute URLs
Hi, this is a very basic question but I want to confirm, as I remembered it was consider a good practice to use the absolute version of your links when linking to other pages of your site, not for any issue related to passing authority or PageRank, but because if someone scraps your content then they would take the links as well (as if they didn't remove them). Have the practices for internal linking with absolute or realtive URLs changed in any way? Which is the best way? absolute or relative? is there any harm for using the relative version? Relative: Absolute: [](<strong><em>http://www.cheapdomain.com/myfolder/mypage.html)[](<strong><em>http://www.cheapdomain.com/myfolder/mypage.html) [Thanks!](<strong><em>http://www.cheapdomain.com/myfolder/mypage.html)
On-Page Optimization | | andresgmontero0