Results 1 to 6 of 6

Thread: Hyphen or Underscore?

  1. #1
    Registered
    Join Date
    Jan 2004
    Posts
    224

    Hyphen or Underscore?

    I don't know if this even matters or not, but, when creating page file names, is it better SEO when seperating words to use a hyphen or underscore?

    Example: file-name.php or file_name.php

  2. #2
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    hyphen, because Google (for some unknown reason) does not treat an underscore as a space (unless they recently fixed this).
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  3. #3
    Senior Member chromate's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    2,348
    I think hyphen's better. But I'm not actually sure if it matters these days.

  4. #4
    Registered Yoda's Avatar
    Join Date
    Apr 2003
    Location
    The Dagobah System
    Posts
    90
    Originally posted by Chris
    hyphen, because Google (for some unknown reason) does not treat an underscore as a space (unless they recently fixed this).
    Is it different with folders, or files that appear the same as folders (through mod_rewrite)? I ask because this site seems to use underscores.

  5. #5
    Trench Warfare
    Join Date
    May 2003
    Location
    Australia
    Posts
    813
    No, same rule apllies to folders (as far as I know).
    ________
    Toyota i-unit history
    Last edited by ozgression; 02-06-2011 at 05:14 AM.

  6. #6
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    Everyone other than Google uses underscores as spaces so for a long time thats what I used, I never bothered to test it with Google because it was standard. In applications when you cannot use spaces an underscore is the standard substitute.

    However I then tested Google one time and found out that I shouldn't have assumed that they'd be like everyone else. Since that time I've used hyphens, but much of this site was made before I realized.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

Similar Threads

  1. Would an underscore improve SEO?
    By iKwak in forum Search Engine Optimization
    Replies: 17
    Last Post: 03-24-2004, 02:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •