Forum Moderators: phranque

Message Too Old, No Replies

directory naming or Directory Naming

         

tonynoriega

10:07 pm on Sep 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



is there a standard for naming sub directories for your domain?

i.e. new_sub_directory or New_Sub_Directory

or is that more something as directed by corporate style guide?

also, is there any downside to having spaces in sub diretory naming?

[edited by: tonynoriega at 10:14 pm (utc) on Sep. 10, 2008]

g1smd

10:14 pm on Sep 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Avoid spaces and underscores in URLs.

Use hyphens or dots to separate words.

I prefer all lower case.

wolfadeus

2:07 pm on Sep 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am with g1smd except for the dots - go for hyphens and lower case.

tonynoriega

9:01 pm on Sep 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



well the company already has hundreds and file and directories that use the underscore...

i dont know if i should rock the boat and explain that hypens work better for searching, or just keep it as is and continue with underscores...

i agree with lower case as well.

old_expat

2:24 am on Sep 14, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In case you decide to rock the boat ..

I had that "problem" on one of my sites and decided to bite the bullet. There are some folks over on the Apache forum who told me how to do a .htaccess rewrite that solved the problem.

"Renamer" solved the file renaming issue (changing underscores to hyphens).

nomis5

8:43 am on Sep 14, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



See this page by Matt Cutts before doing anything drastic:
[mattcutts.com...]

Also, there is at least one very well "partcipated in" thread in webmasterworld on just this subject. A search should find it.

I used underscore in my urls originally. All that I have read subsequently has not persuaded me to change. But I have used hyphens in any new sites to avoid any further thought on the subject.

old_expat

11:48 am on Sep 14, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think the hyphens are more useful if file names and directory names are keywords.

vincevincevince

11:56 am on Sep 14, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Always use lower case; it saves headaches later. Especially when moving systems from windows (where any case works) to linux/unix (where things are case sensitive).