Forum Moderators: Robert Charlton & goodroi
In a catalogue of Items in a certain location what is the best directory structure?
At the moment is:
www.example.com/keyword/CountryName
www.example.com/keyword/CountryName/RegionName
www.example.com/keyword/CountryName/RegionName/CityName
Keyword is the main keyword which is the field my website is on. I expect users to type in google: keyword city, or keyword country, or keyword region.
So with what I know at the moment I am about to change it to:
1)
www.example.com/s{Id}/CountryName-keyword
www.example.com/r{Id}/RegionName-keyword
www.example.com/c{Id}/CityName-keyword
other options are:
2) www.example.com/CountryName-keyword-s{id}
3) www.example.com/s{id}-CountryName-keyword
(same style to region and city)
With {Id} being a number which I need for technical reason.
Which one do you believe might be better?
Or do you suggest any other structure?
Thanks!
[edited by: Robert_Charlton at 8:28 pm (utc) on July 13, 2008]
[edit reason] use example.com - it can never be owned [/edit]
I would also avoid having an ID number as the first part of the path, since that removes the possibility of users navigating even to the category level via URLs. It's much better usability if users can navigate to www.example.com/category/subcategory/ even if they can't reach the final destination without knowing an ID.
The other consideration is visual recognition of the URL: i.e. a user can know what to expect on the page, based on seeing the URL alone. Again, this is usually read left to right, so I would put the 'worst' element (the ID) last.
When considering usability as part of a link structure, one should also consider URL length. From a user perspective, "How long will this URL be when I email it to someone?", is important. What would you think if you got an email with a URL broken up on 3 or 4 lines? My usual response is to ignore them ,unless imperative. It is a usability nightmare having to copy and paste all 3 lines into an address bar in my opinion.
One could argue this usability issue is more to do with email that site structure. But it does exist and does effect a lot of websites. Just check your own 404 listings for the full 1/2 URL in a email story. More to the point, how can this very real problem be more easily addressed? Is it with 100 emails to email client writers asking for a solution, or is it to build sites with shorter URL's?
We should also consider that good navigation is part of usability. Being able to get where you want to go next easily is important to a user. A frustrated user will more often click off your site than spend 3 minutes trying to find a meaningful text link to click.
Being able to understand where you are on a site is also an important part of this. Although this can and should be achieved with good meaningful headings and text on a page. A deep link structure, like those of web directories (DMOZ) should also be considered when appropriate. Having a 5 deep link structure at the top of a page tells the user a lot.
With all this in mind I would say when you are structuring a site on a disk that is more than a few levels deep be careful and perhaps think again. When you are structuring your pages from a navigation perspective, having a large directory type structure can be very useful.
So, the emailed URL might be www.site.co.uk/york/ but, the navigation structure on that same page might be Home > Europe > United Kingdom > England > North Yorkshire > York
example.com/country/region/city/
It would be natural to follow the breadcrumb trail of the taxonomy in this particular instance. No IDs unless you "absolutely have to" in this scenario. Those IDs may cause more harm than good.
And now that I have "extensionless" available to me on Windows, I'm choosing that path, pun intended.
example.com/country/region/city
No More Extensions
I'm through with them and good riddance!
[webmasterworld.com...]
Whatever you do, make sure that there is only "one entry point" for the final destination. This is where numbers or some other identifier come into play...
example.com/90210-1234
I might look at using zip codes and/or some other unique local indentifier in the URI string if possible. It gets tricky when attempting to make "one entry point" for the destination page when you have a natural "drill down" taxonomy.
Look at the Wiki for clues on how you might work this out.
Shorter URIs have always proven to be more user friendly and intuitive.