NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Better to name a HTML file: Hyphen or Underscore?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 01-02-2007, 09:50 AM THREAD STARTER               #1 (permalink)
Account Closed
Join Date: Sep 2006
Posts: 1,075
YesBrilliant is a name known to allYesBrilliant is a name known to allYesBrilliant is a name known to allYesBrilliant is a name known to allYesBrilliant is a name known to allYesBrilliant is a name known to all
 



Better to name a HTML file: Hyphen or Underscore?


According to your development experience, which one you think is better for the ranking of a site to name a HTML/PHP file: Hyphen or Underscore?

Let's consider just SEO, not type-ins, as users would not type long urls anyway.

For example:
www.DOMAIN.ext/keyword1-keyword2-keyword3.htm

or

www.DOMAIN.ext/keyword1_keyword2_keyword3.htm

Thanks or your input.
YesBrilliant is offline  
Old 01-02-2007, 09:59 AM   #2 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
I think I remember hearing hyphen's were better, but I haven't seen anywhere that one is completely better than the other. It doesn't seem like there should be a real difference.
Dan is offline  
Old 01-02-2007, 10:13 AM   #3 (permalink)
Senior Member
 
RegisterRants's Avatar
Join Date: Oct 2006
Location: NJ
Posts: 1,152
RegisterRants has a spectacular aura aboutRegisterRants has a spectacular aura aboutRegisterRants has a spectacular aura about
 




Well, underscores can sometimes be mistaken for spaces, especially when underlines as a link
__________________
Web Development
RegisterRants is offline  
Old 01-02-2007, 10:17 AM   #4 (permalink)
Senior Member
Join Date: Dec 2006
Location: England
Posts: 1,568
Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of
 


Adoption Breast Cancer Breast Cancer Cancer Survivorship
SEO wise i think they're pretty much equal. Something is telling me underscore is better but i have nothing to base that on so i stick with the are the same.

I personally prefer hyphens
Matthew. is offline  
Old 01-02-2007, 10:19 AM   #5 (permalink)
NamePros Member
 
domaincollector's Avatar
Join Date: Apr 2006
Location: USA
Posts: 199
domaincollector is just really nicedomaincollector is just really nicedomaincollector is just really nicedomaincollector is just really nice
 



Observation only


I have noticed that News.com.com.com or whatever they are called use + a lot in their URLs.

EXAMPLE: http://news.com.com/Survey+Chip+sale...l?tag=nefd.top

The other observation is that blogs generally have - in their urls.



I am NOT an expert.



Jeff
domaincollector is offline  
Old 01-02-2007, 10:29 AM   #6 (permalink)
Account Closed
 
DeViAnThans3's Avatar
Join Date: Apr 2006
Location: Belgium
Posts: 442
DeViAnThans3 is a name known to allDeViAnThans3 is a name known to allDeViAnThans3 is a name known to allDeViAnThans3 is a name known to allDeViAnThans3 is a name known to allDeViAnThans3 is a name known to all
 



Personally I use underscores, though, it doesn't really matter if you look to SEO.
It is a fact that underscores could be mistaken by spaces or so, in that view it's better to have hyphens.
DeViAnThans3 is offline  
Old 01-02-2007, 10:58 AM   #7 (permalink)
Forum Moderator
 
enlytend's Avatar
Join Date: Aug 2006
Location: USA
Posts: 2,037
enlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond repute
 



Cancer Survivorship
Quote:
According to your development experience, which one you think is better for the ranking of a site to name a HTML/PHP file: Hyphen or Underscore?
Hyphens are almost always better than underscores.
????: NamePros.com http://www.namepros.com/programming/275928-better-name-html-file-hyphen-underscore.html

Google parses hyphens as word seperators, but underscores are parsed as characters. This means that word1-word2 is seen as 2 words (word1 and word2), but word1_word2 is seen as ONE word (word1_word2).

This has been verified by Google engineer Matt Cutts on a number of occasions, his most recent reference on the web (that I could find in a quick search) in April 2006.

Quote:
I have noticed that News.com.com.com or whatever they are called use + a lot in their URLs.
Plus signs are just spaces in a string which has been URL encoded ...
Last edited by enlytend; 01-02-2007 at 11:08 AM.
enlytend is offline  
Old 01-02-2007, 11:06 AM   #8 (permalink)
Senior Member
Join Date: Dec 2006
Location: England
Posts: 1,568
Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of
 


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by enlytend
Hyphens are almost always better than underscores.

Google parses hyphens as word seperators, but underscores are parsed as characters. This means that word1-word2 is seen as 2 words (word1 and word2), but word1_word2 is seen as ONE word (word1_word2).
????: NamePros.com http://www.namepros.com/showthread.php?t=275928

This has been verified by Google engineer Matt Cutts on a number of occasions, his most recent reference on the web (that I could find in a quick search) in April 2006.
Great info enlytend, Rep'd
Matthew. is offline  
Old 01-02-2007, 12:17 PM   #9 (permalink)
JFS
NamePros Regular
 
JFS's Avatar
Join Date: Oct 2005
Location: Portugal
Posts: 800
JFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to all
 



if you search almost anything on google you will see even if the url is keyword1_keyword2.html it treats both as seperated words and not as one.
if you search for "flu shot" ( withou the "" ) you will have in the listing :
en.wikipedia.org/wiki/Flu_vaccine
pediatrics.about.com/cs/immunizations/a/flu_shots.htm
http://www.kidshealth.org/parent/gen...u_vaccine.html
www.medicinenet.com/flu_vaccination/article.htm

if the two words separated by the underscore was treated as one those results shouldn't be listed.
__________________
Joćo Fernandes Silva
JFS is offline  
Old 01-02-2007, 03:32 PM   #10 (permalink)
Forum Moderator
 
enlytend's Avatar
Join Date: Aug 2006
Location: USA
Posts: 2,037
enlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond repute
 



Cancer Survivorship
Quote:
if you search for "flu shot" ( withou the "" ) you will have in the listing :
en.wikipedia.org/wiki/Flu_vaccine
Yes, but take a closer look at the search results - reproduced here, highlighted as in the actual serps. To simplify, I limited the search to wikipedia (exact search phrase used - flu shot site:wikipedia.org )
????: NamePros.com http://www.namepros.com/showthread.php?t=275928
Flu vaccine - Wikipedia, the free encyclopedia
Additionally, because mortality is high among infants who contract influenza, the household contacts and caregivers of infants should get a flu shot to ...
en.wikipedia.org/wiki/Flu_vaccine - 114k - Cached - Similar pages
The individual words of the query (flu and shot) are highlighted in the search results, as expected. Now look at the next result:
Influenza pandemic - Wikipedia, the free encyclopedia
No, it won't protect you against pandemic influenza. But flu shots can help you to stay healthy. Get a flu shot to help protect yourself from seasonal flu. ...
en.wikipedia.org/wiki/Influenza_pandemic - 116k - Cached - Similar pages
Notice how the serps display the word flu highlighted within the word "Influenza" in the url - they're showing you one of your search terms even though its embedded in another word.

Here's an experiment - try these 2 queries in a Google search:
flu-vaccine site:wikipedia.org
and then try
flu_vaccine site:wikipedia.org
The first returns all results containing flu and vaccine in order and separated by one character.

However, the second query returns only the results with the literal "flu_vaccine"!

And even more interesting, notice how flu and vaccine are NOT highlighted in the URL:
en.wikipedia.org/wiki/Wikipedia:Featured_picture_candidates/Avian_Flu_Vaccine
in the results from the first query -

So, with all due respect, it looks to me like hyphen is still being interpreted as a separator and the underscore as a character in Google ...
enlytend is offline  
Old 01-02-2007, 04:31 PM   #11 (permalink)
JFS
NamePros Regular
 
JFS's Avatar
Join Date: Oct 2005
Location: Portugal
Posts: 800
JFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to all
 



hyphen is being interpreted as a separator if you insert it on the search query not on the results, that was what i meant.
__________________
Joćo Fernandes Silva
JFS is offline  
Old 01-03-2007, 09:58 PM THREAD STARTER               #12 (permalink)
Account Closed
Join Date: Sep 2006
Posts: 1,075
YesBrilliant is a name known to allYesBrilliant is a name known to allYesBrilliant is a name known to allYesBrilliant is a name known to allYesBrilliant is a name known to allYesBrilliant is a name known to all
 



Thank you very much to all of you who replyed so enthusiastically. I really appreciate and reppd.

I'll be using Hyphens as my choice.

Thanks again.
YesBrilliant is offline  
Old 01-04-2007, 03:48 PM   #13 (permalink)
NamePros Regular
 
Noobie's Avatar
Join Date: Feb 2006
Location: Montreal, Quebec, Canada
Posts: 324
Noobie is on a distinguished road
 



I read hyphen somewhere .. so i use them ....
__________________
Goldkey.com is a scam
What's your BMI? | Timestamp Generator
Noobie is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 11:38 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger