1 of 3
1
Dashes or underscores in the URL
Posted: 15 May 2008 09:38 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  881
Joined  02-15-2008

I go with dashes, mainly from a personal preference point of view. I was wondering, does anyone go for one or the other for any good reason, or are they equal?

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!
Remember - If at first you don’t succeed, you’re not Chuck Norris

Profile
 
 
Posted: 15 May 2008 09:55 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  05-14-2008

I have been wanting to know this for ages. I prefer underscores, but for no good reason. Recently I was told that hyphens are better for SEO is that true or were they making it up?

 Signature 

Emily Griffiths | NuBlue Web Solutions | Lancaster UK

Profile
 
 
Posted: 15 May 2008 10:13 AM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

I go with hyphens.  My main issue is that I have very poor eyesight and often don’t see underscores and see only a blank space.  Especially if a line is already underlined for some reason.  I don’t have any SEO reasons for this preference, a machine parser obviously won’t have vision issues. =)

 Signature 
Profile
MSG
 
 
Posted: 15 May 2008 10:56 AM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6563
Joined  04-15-2006
Lisa Wess - 15 May 2008 10:13 AM

Especially if a line is already underlined for some reason.

I go with underscores as I do remember reading somewhere that these were better for SEO but nowadays everything I read says that it really doesn’t matter which you go with. Lisa I was just wondering what you meant by the above statement? In what instance would a url_title already be underlined?

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 15 May 2008 10:58 AM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15408
Joined  05-15-2004

A hyperlink?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 15 May 2008 11:06 AM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6563
Joined  04-15-2006

Duh!!! Stupid me! wink

I was thinking of the browser address bar!! grin

Going off to hide in the corner now!!

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 15 May 2008 12:19 PM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  335
Joined  01-25-2006

I wrote a piece about this last year on my blog.

Despite what a lot of people say I go with underscores and there is a very good semantic reason for it. Hyphens are easier to see sure but there are situations where they do not make sense but underscores do.

I know I am out on a limb on this but I am convinced I am right.

 Signature 

“All men are equal. All men, that is, who possess umbrellas.” E.M. Forster 

Artscape and Santaballs
Chris O’Donoghue Chelsea Garden Designer
The Greenwich and District Narrow Gauge Railway Society
Croydon RFC

Profile
 
 
Posted: 15 May 2008 12:19 PM   [ Ignore ]   [ # 7 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1191
Joined  05-15-2004
Ingmar Greil - 15 May 2008 10:58 AM

A hyperlink?

But… but it’s not good manners to paste raw URLs onto a web page…!

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 15 May 2008 12:24 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15408
Joined  05-15-2004

Sorry to burst your bubble, McGehee. (This is “The Lounge”, right? Check.)

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 15 May 2008 12:31 PM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  335
Joined  01-25-2006

But McGehee has a point - having raw URLs isn’t good for SEO or user journey.

For example the link I threw in earlier is: http://www.simoncox.com/mt3/2006/06/dashes_vs_underscores.php

But on the page it is better to make the hyperlink descriptive of its destination:
Dashes or underscores


er - which I didn’t do earlier…

 Signature 

“All men are equal. All men, that is, who possess umbrellas.” E.M. Forster 

Artscape and Santaballs
Chris O’Donoghue Chelsea Garden Designer
The Greenwich and District Narrow Gauge Railway Society
Croydon RFC

Profile
 
 
Posted: 15 May 2008 12:47 PM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

I see a lot of links - raw, usually, and I usually can’t see the underscore.  And yea, I can’t see it in my browser URL bar either, unless I squint or zoom.

So for me it’s an accessibility question; which is more important to me than SEO - what’s the point of SEO if people can’t read the stuff? =)

 Signature 
Profile
MSG
 
 
Posted: 15 May 2008 01:02 PM   [ Ignore ]   [ # 11 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6563
Joined  04-15-2006
Lisa Wess - 15 May 2008 12:47 PM

What’s the point of SEO if people can’t read the stuff? =)

Definitely a very good point there!

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 15 May 2008 01:30 PM   [ Ignore ]   [ # 12 ]  
Summer Student
Avatar
Total Posts:  17
Joined  09-11-2007

Like Mark wrote in his first post, I also read that underscores were favored by search engines. But that was three years ago. Today, I don’t think it matters.  When I visit popular websites, I notice that some use dashes and some use underscores.

Profile
 
 
Posted: 15 May 2008 01:55 PM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  13
Joined  04-24-2008

I can’t remember where I read this, but I do believe from an SEO perspective that hyphens are now very definitely the top choice, if only for Google. A quick example shows why I believe I am correct:

Search on Google for Expression Engine:

expression_engine - 8,220 results

expression-engine - 4,240,000 results

...and just for information, a plain old space between them:

expression engine - 3,300,000 results

So I would most definitely stick with hyphens.

Profile
 
 
Posted: 15 May 2008 02:06 PM   [ Ignore ]   [ # 14 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  881
Joined  02-15-2008

You can’t beat a bit of research! I find that searching on expression-engine brought back the main EE site, but expression_engine did not. Seems Google treats the dash version as two words, but the underscore version as one word.

I shall be sticking with dashes too.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!
Remember - If at first you don’t succeed, you’re not Chuck Norris

Profile
 
 
Posted: 15 May 2008 02:16 PM   [ Ignore ]   [ # 15 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12395
Joined  04-29-2002

You guys do realize the program is called ExpressionEngine, no spaces. smile

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 15 May 2008 02:41 PM   [ Ignore ]   [ # 16 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  881
Joined  02-15-2008

Sure, it’s just a handy two worded name to use in this instance!

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!
Remember - If at first you don’t succeed, you’re not Chuck Norris

Profile
 
 
Posted: 15 May 2008 05:19 PM   [ Ignore ]   [ # 17 ]  
Grad Student
Avatar
Rank
Total Posts:  83
Joined  04-03-2008

Dashes for me. People in the real world are used to dashes, and only use underscores when they’re typing and want to put a place for an answer to be filled in. Underscores scream “computer stuff” at me.

Profile
 
 
Posted: 15 May 2008 05:48 PM   [ Ignore ]   [ # 18 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12395
Joined  04-29-2002

I use dashes for URL titles and underscore for templates and global variable names.

Personal preference. Dashes are easier to type in, no need to hold down the shift key.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
   
1 of 3
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 28
Total Topics: 82017 Total Anonymous Users: 17
Total Replies: 440824 Total Guests: 182
Total Posts: 522841    
Members ( View Memberlist )