Go Back   Forum Care Forums > Development Reference Area > Webmaster Topics

Reply
 
LinkBack Thread Tools Display Modes
Name of Files
Old
  (#1)
Miguel
Guest
 
Posts: n/a
Default Name of Files - 05-14-2007, 01:27 AM

Hello:

Could be some problem with the name of files, to index in Google or
Yahoo, if I put, for example like an image files, something similar to
xxxx-xxxx.xxxx.gif or xxxx.xxxx-xxxx.jpeg

--
Miguel M. Yalán
http://mmyv.com
--

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Name of Files
Old
  (#2)
cristina
Guest
 
Posts: n/a
Default Re: Name of Files - 05-14-2007, 01:27 AM

Miguel wrote:

> Hello:
>
> Could be some problem with the name of files, to index in Google or
> Yahoo, if I put, for example like an image files, something similar to
> xxxx-xxxx.xxxx.gif or xxxx.xxxx-xxxx.jpeg


If your question is about the use of hyphens - in URLs,
I think it was a time when it was better to use underscores _ instead,
and also it seems a good idea to build the URL with
words (not many) in the file name that are important to the content,
for example http://www.domain.com/blue_car.jpg

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Name of Files
Old
  (#3)
John Bokma
Guest
 
Posts: n/a
Default Re: Name of Files - 05-14-2007, 01:27 AM

"cristina" <EMAIL REMOVED> wrote:

> Miguel wrote:
>
>> Hello:
>>
>> Could be some problem with the name of files, to index in Google or
>> Yahoo, if I put, for example like an image files, something similar to
>> xxxx-xxxx.xxxx.gif or xxxx.xxxx-xxxx.jpeg

>
> If your question is about the use of hyphens - in URLs,
> I think it was a time when it was better to use underscores _ instead,
> and also it seems a good idea to build the URL with
> words (not many) in the file name that are important to the content,
> for example http://www.domain.com/blue_car.jpg


From what I recall, - was preferred over _.

But notice also the . in both filenames (not counting the extension
separator). I doubt it does matter though.

I use - separated words in filenames a lot, both for HTML and images.

--
John Need help with SEO? Get started with a SEO report of your site:

--> http://johnbokma.com/websitedesign/seo-expert-help.html
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Name of Files
Old
  (#4)
David Dorward
Guest
 
Posts: n/a
Default Re: Name of Files - 05-14-2007, 01:27 AM

cristina wrote:

> If your question is about the use of hyphens - in URLs,
> I think it was a time when it was better to use underscores _ instead,


It is difficult to spot underscores in underlined URLs (e.g. in print
media), so I'd avoid them.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Name of Files
Old
  (#5)
Charles Sweeney
Guest
 
Posts: n/a
Default Re: Name of Files - 05-14-2007, 01:27 AM

David Dorward wrote

> It is difficult to spot underscores in underlined URLs (e.g. in print
> media), so I'd avoid them.


That's true, but I wouldn't use them for something that had to be read and
typed in, so it isn't a factor for me.

I do use underscores. For some reason I had the idea that it was the
correct way to do it, and that has stuck. For me, a hyphen or any other
separator just doesn't look right.

--
Charles Sweeney
http://CharlesSweeney.com
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Name of Files
Old
  (#6)
Bergamot
Guest
 
Posts: n/a
Default Re: Name of Files - 05-14-2007, 01:27 AM

cristina wrote:
>
> If your question is about the use of hyphens - in URLs,
> I think it was a time when it was better to use underscores _ instead


AIUI, search engines tend to treat words separated by hyphens as
separate words, and words separated by underscores as a single compound
word.

Developers probably tend to favor underscores because most programming
languages don't allow hyphens as a word separator for variable or
function names. It's just a habit to use underscores.

--
Berg
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Name of Files
Old
  (#7)
Mark Goodge
Guest
 
Posts: n/a
Default Re: Name of Files - 05-14-2007, 01:27 AM

On Sat, 16 Dec 2006 07:29:59 -0600, Bergamot put finger to keyboard
and typed:

>cristina wrote:
>>
>> If your question is about the use of hyphens - in URLs,
>> I think it was a time when it was better to use underscores _ instead

>
>AIUI, search engines tend to treat words separated by hyphens as
>separate words, and words separated by underscores as a single compound
>word.


That's a side-effect of search engines being originally programmed
using standard regular expressions, in which the underscore is a word
character (along with all the letters and numerals), while all other
punctuation (including a hyphen) are non-word characters. So anything
that searches for word boundaries will find one in between the
sections of "foo-bar", but won't find a boundary in "foo_bar".

I tend to use plus signs as separators in URLs (particularly when
using mod_rewrite to read parseable URLs rather than using GET
variables). That's partly because a plus sign is a valid and correct
URL replacement for a space anyway, but it also avoids confusion with
words that are genuinely hyphenated and need to remain hyphenated in
the URL (such as double-barrelled names, and hypenated words like
"double-barrelled"!).

>Developers probably tend to favor underscores because most programming
>languages don't allow hyphens as a word separator for variable or
>function names. It's just a habit to use underscores.


More to the point, hyphens *are* a word separator in most programming
languages (just as they are in regular expressions, and for the same
reason), but variable names usually have to be a single word. So
programmers use underscores to create the visual appearance of
multiple words in a string that is actually only one word as far as
the language compiler/interpreter is concerned.

Mark
--
Visit: http://www.MotorwayServices.info - read and share comments and opinons
"Well it's true today"
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Name of Files
Old
  (#8)
Phil Payne
Guest
 
Posts: n/a
Default Re: Name of Files - 05-14-2007, 01:27 AM

> AIUI, search engines tend to treat words separated by hyphens as
> separate words, and words separated by underscores as a single compound
> word.


That may be simplistic. I've observed Google parsing compound words
recently and returning results with the components separate as well as
compound.

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Name of Files
Old
  (#9)
cristina
Guest
 
Posts: n/a
Default Re: Name of Files - 05-14-2007, 01:27 AM

Bergamot wrote:

> Developers probably tend to favor underscores because most programming
> languages don't allow hyphens as a word separator for variable or
> function names. It's just a habit to use underscores.


I ***ume that search engines might use sometimes some
programming languages when they crawl and store URLs, etc.
and I think this is why when they have an
update or something they might have for a short time problems
with other characters than alpha-numeric characters or
underscores (as word separators).

Also more search engines are accepting sitemaps in XML format
(after Google there is now Yahoo and soon MSN)
and it is better I think not to worry about the encoding of characters
in URLs in sitemaps, and there is no problem
with alphanumeric characters and underscores.

I am still not sure what the question in the original posting was.

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Name of Files
Old
  (#10)
Charles Sweeney
Guest
 
Posts: n/a
Default Re: Name of Files - 05-14-2007, 01:28 AM

Phil Payne wrote

>> AIUI, search engines tend to treat words separated by hyphens as
>> separate words, and words separated by underscores as a single compound
>> word.

>
> That may be simplistic. I've observed Google parsing compound words
> recently and returning results with the components separate as well as
> compound.


Indeed. It has always appeared so to me.

--
Charles Sweeney
http://CharlesSweeney.com
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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





Contact Us - Forum Care Forums - Archive - Top