Forum Moderators: Robert Charlton & goodroi
If there's a folder then it begs the question that there is a root file in that folder.
example.com/page - is the extensionless URL for a page in the root. example.com/folder/ - points to the index file in the folder. example.com/folder/page - is the extensionless URL for a page in that folder. This is a part of the HTTP specs. Don't break the web by ignoring that - and we see a great many people visiting the WebmasterWorld Apache forum who are having problems with their sites because they chose to ignore the specs.
The similarity to unix and other disk operating system filename conventions should be taken as purely coincidental, and should not be taken to indicate that URIs should be interpreted as file names.
Tim Berners-Lee RFC1630 Universal Resource Identifiers in WWW [ietf.org]
[edited by: Status_203 at 9:59 am (utc) on Mar 26, 2010]
Do you force users to /home.htm when they request your domain?
The same document does say that a path that contains slashes "these must imply a hierarchical structure".
Why should I use file system conventions?
I've even seen sites use (redirect to) /keyword (extensionless) for their home page
each to their own on this one
But when I first started making sites I used to put all the pages in a /pages/ folder so #*$! do I know :)
example.com/folder
is not a folder but a page in the example.com folder to which nothing 'belongs', whereas
example.com/folder/
indicates that there is a collection of documents that 'belong' to that location.
[edited by: TheMadScientist at 11:08 pm (utc) on Mar 26, 2010]
the directory overview is located at: http://www.example.com/directory rather than http://www.example.com/directory/
href="logo.png" linked from the first one points to http://www.example.com/logo.png and from the second one points to http://www.example.com/directory/logo.gif, and that's what breaks a site when people fail to understand that. URLs for folders have a trailing slash for good reason.
I've even seen sites use (redirect to) /keyword (extensionless) for their home page
Me too and it fecks me off. Why? Totally unneccesary.
http://www.example.com/directory/ is the same content as http://www.example.com/directory is there a duplicate content issue on Yahoo SERP?
So, that SEO firm was probably doing that for a reason.
It's completely up to you if you decide to show your all of your content as the 'default page' for a directory rather than on a specific page of your site, but redirecting one level up from the directory for the default page (EG /directory) is essentially the same as redirecting to the actual page name of the default file to be shown for directory requests (usually index.ext EG /directory/index.ext). Neither is wrong to do, but IMO one is definitely more attractive in the address bar, shorter and much easier for type ins
example.com/sub example.com/sub/ You're stating that /directory is the same as /directory/index, is that correct?
So, just to verify, this...
example.com/sub
Is not the same as...
example.com/sub/
Is there some ranking disadvantage in a keyword URL having a backslash or not ?