What's the correct way to name files and folders?

by chassm
3 replies
  • WEB DESIGN
  • |
I'm restructuring my static site and I'm reading mixed opinions about how to name and structure files and folders and I'd like to get this squared away properly.

If I have several topics about bankruptcy like "filing bankruptcy", "bankruptcy services", and "get bankruptcy protection", can all of these be under the same folder named bankruptcy? or can I create a folder for each sub category. As in filing_bankruptcy, bankruptcy_services etc. I know that each sub folder should have an index.html page, but what about additional articles that I write, what's the proper way to name those files if they happen to be targeting long tail keywords, like "don't file bankruptcy alone" or "bankruptcy services in your area". If I was going to write articles for these keywords, it seems like I should be naming these files by the name of the long tail, separating each word with an _ or a -.

This is where I'm not having much luck, I can't seem to get this right. My main concern here is the use of long tail keywords for article names and directory names. I know it's not a good idea to make the URL longer than it needs to be, and maybe I'm trying to hard to be granular focusing on keywords.

Any help on this I'd appreciate it, Thanks.

Charlie.
#correct #files #folders
  • Profile picture of the author tajimd
    i used _ (underscore) but lately i have started to use - (dash). I guess if more useful in terms of SEO
    {{ DiscussionBoard.errors[353659].message }}
  • Profile picture of the author blackbubble
    I have only used _ , I am not sure if it will affect SEO or not but I am just used to naming files and folders with it
    {{ DiscussionBoard.errors[355754].message }}
  • Profile picture of the author chassm
    I've been doing some research on this and it turns out, initially it was a better idea to use the - dash to separate words since google used to consider the _ underscore a letter and would basically see two words separated by an _ as a single word. However recently, google has started to see the _ as a separator in URLs, so looks like if we've been using _ we should be ok.

    Thanks.
    {{ DiscussionBoard.errors[355957].message }}

Trending Topics