h3. Best Practice
bq. Use human readable URLs
h3. Rationale
This is human readable:
http://www.bestbuy.com/electronics/research
This is not:
http://www.bestbuy.com/site/olspage.jsp?id=cat12074&type=page&categoryRep=cat03000
The problem with complex URLs is three-fold:
# A human cannot “reverse engineer” a URL to figure out where they are in the site or what might be “one level higher”. Human readable URLs allow you to “cut off” the end of the URL and get to a higher level in the site. URLs that reflect the site’s page layout also act as a secondary way-finding tool.
# It is hard to share URLs that are not human readable. If you cut and paste a complex URL into an e-mail to share it, often the URL will break in two because it is too long to fit on one line. This creates a broken link for the recipient.
# Some search engines have a hard time with overly complex URLs and you may find that many of your pages are not accessible to search engine “bots” looking for your content.
If your site is dynamically generated, discuss with your tech team or vendor whether it is possible to use human readable URLs. If it isn’t you’ll have to do some serious thinking about the cost benefit of findablity vs. technology upgrades.
If your site is static and created by humans, remind them to name pages and directories with the user in mind, not the builder.
h3. Tip
Instead of naming pages descriptively, put them in well-named directories and save the pages as index.html.
Bad:
http://www.allaboutbutlers.org/site/olspage.jsp?id=catsd1225&type=page&categoryRep=bin56892452124
Better:
http://www.allaboutbutlers.org/servingdinner.html
Best:
http://www.allaboutbutlers.org/servingdinner/index.html
In this “best case” a visitor can simply type *allaboutbutlers.org/servingdinner* to get to the exact content they want.
h3. Best Practice In Action
“apple.ca/ipodnano/ipodyourcar”:http://www.apple.com/ca/ipodnano/ipodyourcar/
3 Comments
Comments are closed.
If Apache is your web server, mod_rewrite is your friend. A good overview of what you can do with is available here.
I wonder how/where TinyURL fits in this…I see some sites using TinyURL to deal with their long URLs in email newsletters.
– Jeff
Your opinion on the necessity of human-readable URLs is based on the assumption that the site’s navigation isn’t user-friendly, and that the site has a single hierarchy. Any web site where the user has to manipulate the URL in order to navigate the site is a major failure. A properly designed web site has a breadcrumb trail and/or expandable navigation, and a contextual menu with links back to the previous page, which eliminate the need to even look at the URL for any reason.