Reply
Do you hypenate or underscore your filenames?
Old 01-22-2007, 02:51 AM Do you hypenate or underscore your filenames?
Mohab's Avatar
Ultra Talker

Posts: 256
Name: Mohab
Location: Cairo, Egypt
If you have an html or graphic file that has more than one word for a file name do you put a:

space between both: file name.html
hypen file-name.gif
underscore file_name.gpj

Which method do you recommend?
Mohab is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 01-22-2007, 04:08 AM Re: Do you hypenate or underscore your filenames?
stoot98's Avatar
Ultra Talker

Posts: 340
Name: Stuart
Location: Glasgow, Scotland
personally i capatalise the words and leave them together (e.g. myPictureFile.jpg) same thing with variables in code.

I dont think theres any real advantage from different ways, but i wouldn't recommend spaces.
stoot98 is offline
Reply With Quote
View Public Profile
 
Old 01-22-2007, 05:21 AM Re: Do you hypenate or underscore your filenames?
Average Talker

Posts: 27
I usually use underscore.
Like stoot98, I wouldn't recommend spaces as well.
__________________
DeonixDesign.com
Downloads 1000+ Premium Web Templates.
Webtemplateportal.com
100% Original Free Web Templates.
boboman is offline
Reply With Quote
View Public Profile
 
Old 01-22-2007, 01:33 PM Re: Do you hypenate or underscore your filenames?
Tom_M's Avatar
Ultra Talker

Posts: 251
Name: Tom Maurer
Location: Pennslvania, USA
Stay away from spaces! As far as naming goes, you just have to use whatever makes sense to you. Just be consistent in how you name things. For me, all graphical elements on my sites are separated with underscores. If I use a photo on a site, it gets all combined like Stoot98 does.

Just pick what makes sense to you and stick with it.
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 01-22-2007, 02:52 PM Re: Do you hypenate or underscore your filenames?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
A Focused Blog Is A Happy Blog
Posts: 8,663
Name: Steven Bradley
Location: Boulder, Colorado
I always use hyphens since that's the best for search engines.

A search engine sees myImageFile as one word. It also sees my_image_file as one word. I prefer they see each word and only hyphens will ensure that.

Also with underscores, while it may not make a big difference in image paths it will make a difference in links and urls that people see. The underscore can often get hidden and look like a space and possible lead to people trying to use the wrong url to find your page.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-22-2007, 09:44 PM Re: Do you hypenate or underscore your filenames?
Tom_M's Avatar
Ultra Talker

Posts: 251
Name: Tom Maurer
Location: Pennslvania, USA
Quote:
Originally Posted by vangogh View Post
A search engine sees myImageFile as one word. It also sees my_image_file as one word. I prefer they see each word and only hyphens will ensure that.
I did not know that. Thanks for that little tip.
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 01-22-2007, 10:59 PM Re: Do you hypenate or underscore your filenames?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
A Focused Blog Is A Happy Blog
Posts: 8,663
Name: Steven Bradley
Location: Boulder, Colorado
Glad to help. Here's a post from Matt Cutts on using dashes and underscores. It's a year and a half old, but I believe the situation is still the same.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-23-2007, 12:20 AM Re: Do you hypenate or underscore your filenames?
Kirtan's Avatar
Who Am I?

Posts: 377
Name: Venkat Raj
Location: Salem, South India
Not to competite with Vangogh / Matt Cutts

This article "visually" shows what is the difference between hyphen, underscore and conjoin.
Keywords In Urls

And John Scott of V7N
http://www.internet-marketing-blog.c...words-in-urls/
__________________
All the Buddhas of all the ages have been telling you a very simple fact: Be -- don't try to become.
Kirtan is offline
Reply With Quote
View Public Profile Visit Kirtan's homepage!
 
Old 01-23-2007, 11:50 AM Re: Do you hypenate or underscore your filenames?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
A Focused Blog Is A Happy Blog
Posts: 8,663
Name: Steven Bradley
Location: Boulder, Colorado
I think both articles show that Google sees it just like I said. If you want your url to be seen as separate words in Google then you need to use a hyphen. Yahoo and MSN may or may not be able to parse the individual words with either the underscore or when run together, but Google doesn't.

I'm not sure why they can't becuase it seems like something they should be able to do, but for the moment if you want Google to see the individual words in your url you need to use a dash between the words.

I didn't see anything in either article that goes against that.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-23-2007, 08:08 PM Re: Do you hypenate or underscore your filenames?
Kirtan's Avatar
Who Am I?

Posts: 377
Name: Venkat Raj
Location: Salem, South India
I agree. I just posted it coz the first article has SERP images which clearly shows whatz the advantage of using hypens over underscore and conjoined. And I, myself, using hypens. I love articles with images which explain theory, because of lack of english fluency. (Myself)
__________________
All the Buddhas of all the ages have been telling you a very simple fact: Be -- don't try to become.
Kirtan is offline
Reply With Quote
View Public Profile Visit Kirtan's homepage!
 
Old 01-23-2007, 09:54 PM Re: Do you hypenate or underscore your filenames?
vangogh's Avatar
Post Impressionist

Latest Blog Post:
A Focused Blog Is A Happy Blog
Posts: 8,663
Name: Steven Bradley
Location: Boulder, Colorado
I thought both were good articles. I did my own rather informal experiment a few months back. Does keyword1keyword2.com = keyword1-keyword2.com?

I was looking more at words combined into one and separated by dashes and my experiment was little more than a few searches at Google. I came to the same conclusion though.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-28-2007, 02:47 PM Re: Do you hypenate or underscore your filenames?
Experienced Talker

Posts: 40
Name: qbris
everything is fine except space, in term of search engine friendly better to avoid any space in any of your file..for domain name im still not using dash, so im not sure the effect toward your keyword.
nikey is offline
Reply With Quote
View Public Profile
 
Old 01-29-2007, 03:35 AM Re: Do you hypenate or underscore your filenames?
Mohab's Avatar
Ultra Talker

Posts: 256
Name: Mohab
Location: Cairo, Egypt
Thank you all for your replys.

I think I'l stick with hyphens/ dashes/ minus signs because they are easier to see and "Google friendly"
Mohab is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Do you hypenate or underscore your filenames?
 

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.17247 seconds with 13 queries