SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    858
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Should I use hyphens in all of my file names?

    I use hyphens in URLs that deal with article names, like this:

    oil-testimonials.com/newVersion/essential-oils/7492/dry-lips-love-healing-lip-balm

    I haven't been using hyphens in files like this:

    welcomeBack.php
    addTestimonial.php
    privacyPolicy.php

    Should I be using hyphens in ALL filenames?

    Thanks!
    Convert your dollars into silver coins. www.convert2silver.com

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,171
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    It's really up to you, but I prefer hyphens. They are nicer to read, and I believe they help with SEO, too, as the words can then be distinguished. Mixing caps and lower case is also a recipe for typos, too.

  3. #3
    SitePoint Wizard webcosmo's Avatar
    Join Date
    Oct 2007
    Location
    Boston, MA
    Posts
    1,480
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    its more of a preference. some people do believe hyphens are more effective as per SEO.

  4. #4
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,888
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by webcosmo View Post
    its more of a preference. some people do believe hyphens are more effective as per SEO.
    They can make it easier for search bots to distinguish the different words. While Google can pick out individual words from a stringofwordswithnospaces, there's obviously a bigger risk of it getting ot wrong than a string-of-words-with-hyphens. It's also much easier for other people to type in and to read, which has an impact too.

    In terms of casing – unless there's a particular need otherwise, it's always a good idea to make sure your server is not case sensitive. You can then promote website.com/URLinCamelCase to make the words more obvious, but if someone types in website.com/urlincamelcase, you want the server to give them the right page and not spit back an error.


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
  •