[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 01-02-2007, 08:50 AM   #1 (permalink)
Account Closed
 
Join Date: Sep 2006
Posts: 1,075
365.60 NP$ (Donate)

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, 08:59 AM   #2 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

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, 09:13 AM   #3 (permalink)
Senior Member
 
RegisterRants's Avatar
 
Join Date: Oct 2006
Posts: 1,144
257.37 NP$ (Donate)

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, 09:17 AM   #4 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,546
34.41 NP$ (Donate)

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, 09:19 AM   #5 (permalink)
NamePros Member
 
domaincollector's Avatar
 
Join Date: Apr 2006
Location: USA
Posts: 199
7.37 NP$ (Donate)

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, 09:29 AM   #6 (permalink)
Spamzor.com
 
DeViAnThans3's Avatar
 
Join Date: Apr 2006
Location: Belgium
Posts: 442
22.35 NP$ (Donate)

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.
__________________
Useless is cool!
Work From Home Opportunities -
1 link ... 1 month ... 5 NP$ ] Real bargain! Limited to 1 month.
DeViAnThans3 is offline  
Old 01-02-2007, 09:58 AM   #7 (permalink)
NamePros Regular
 
Join Date: Aug 2006
Location: USA
Posts: 725
212.90 NP$ (Donate)

enlytend is a name known to allenlytend is a name known to allenlytend is a name known to allenlytend is a name known to allenlytend is a name known to allenlytend is a name known to all


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.

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 10:08 AM.
enlytend is offline  
Old 01-02-2007, 10:06 AM   #8 (permalink)
Stud Sausage
 
Join Date: Dec 2006
Location: England
Posts: 1,546
34.41 NP$ (Donate)

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
Quote:
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).

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, 11:17 AM   #9 (permalink)
JFS
NamePros Regular
 
JFS's Avatar
 
Join Date: Oct 2005
Location: Portugal
Posts: 760
56.85 NP$ (Donate)

JFS is just really niceJFS is just really niceJFS is just really niceJFS is just really niceJFS is just really niceJFS is just really nice


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
Selling :
19P.ORG - ARCADEHITS.ORG - AZIAN.NET - COREFANS.COM - CTUTORIALS.NET - DEDISEEK.COM - HITCHECK.COM - HOST15.COM - HOSTCUSTOMER.COM - LARGETIPS.COM - SCRIPTCANDY.COM - VISUALBOOK.NET - VOXVPS.COM / .NET - WALLPAPERSARENA.COM
JFS is offline  
Old 01-02-2007, 02:32 PM   #10 (permalink)
NamePros Regular
 
Join Date: Aug 2006
Location: USA
Posts: 725
212.90 NP$ (Donate)

enlytend is a name known to allenlytend is a name known to allenlytend is a name known to allenlytend is a name known to allenlytend is a name known to allenlytend is a name known to all


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 )
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, 03:31 PM   #11 (permalink)
JFS
NamePros Regular
 
JFS's Avatar
 
Join Date: Oct 2005
Location: Portugal
Posts: 760
56.85 NP$ (Donate)

JFS is just really niceJFS is just really niceJFS is just really niceJFS is just really niceJFS is just really niceJFS is just really nice


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
Selling :
19P.ORG - ARCADEHITS.ORG - AZIAN.NET - COREFANS.COM - CTUTORIALS.NET - DEDISEEK.COM - HITCHECK.COM - HOST15.COM - HOSTCUSTOMER.COM - LARGETIPS.COM - SCRIPTCANDY.COM - VISUALBOOK.NET - VOXVPS.COM / .NET - WALLPAPERSARENA.COM
JFS is offline  
Old 01-03-2007, 08:58 PM   #12 (permalink)
Account Closed
 
Join Date: Sep 2006
Posts: 1,075
365.60 NP$ (Donate)

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, 02:48 PM   #13 (permalink)
NamePros Regular
 
Noobie's Avatar
 
Join Date: Feb 2006
Location: Montreal, Quebec, Canada
Posts: 324
66.75 NP$ (Donate)

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 03:13 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85