Forum Moderators: open
if i have a file named "chimchim.html", to use the "/" method---do i create a folder named "chimchim" and then rename "chimchim.html" as index.html in the folder "chimchim" and call the file by ../chimchim/ ???
or have i missed the boat on this one?
thanks. sorry it is so wordy!
Example: If you have a big section on a site, don't let the first page for that section be section_name.html .. Instead, move all the documents that belong to that section to its own directory.
However, it would be quite pointless to let every single file have it's own directory ..
Does that make more sense? :)
That said, short, simple URLs such as yoursite.com/whatever do work better than long, complex URLs
1) in emails, and
2) for any kind of offline promotion
DrDoc is right that it would be overkill to put every page in its own directory, but for selected pages it might be worthwhile. Also consider using .htaccess redirects so you could use shorter URLs in emails or offline without needing to change existing pages. Be cautious about letting search engines get hold of .htaccess redirect URLs, though, in case they interpreted them as duplicate content.
2. The advantage is that you can change your backend without breaking links from other pages to yours. Say your files are named /path/to/file.html and you decide to switch to Cold Fusion, now your files are at /path/to/file.cfm and links from search engines and other sites are now broken.
Tom