User-Centered URL Design
Adaptive Path has this interesting essay by Jesse James Garrett on user friendly URL design. When websites were just static files, they were often named in a friendly way, just to make it easier for the designer. But today, many dynamic web sites and CMS's are based around extremely long and complicated URLs that are difficult to work with (ever try to read one to someone over the phone?). This essay explores the way some websites use redirects and smart naming schemes to keep URL's easy and friendly.
A good basic guide from the founder of the web is at http://www.w3.org/DesignIssues/Axioms.html. (Note that URI doesn't follow its own advice, heh)
Brent Simmons' Law of CMS URLs:
The more expensive the Content Management System, the crappier the URLs. Compare, for instance, StoryServer's weird comma-delimited numeric URLs to Radio UserLand's human-readable (and guessable) URLs. Then compare the prices--orders of magnitudes of difference. So, at least in this respect, there's an inverse relationship between price and quality.
cpeterso
My site is 100% static HTML, but my rules of thumb for URLs include:
- never more than 80 chars, so they can be emailed
without wrapping
- no uppercase, ever (otherwise you'll forget where
the caps were)
- never more than two directories deep (I sometimes
break this due to bad planning)
- if a new page seems likely to grow into many
pages, it should be created as foo/index.html
instead of foo.html (Someone emailed me this
brilliant tip, I forget who though.)
But the bottom line is to arrange directories
and files (and their names) so that you can
remember them without having to doublecheck.
Anyone else find it a bit ironic that an article that is offering suggestions for cleaner URLs and undoing the damage of CMS naming conventions is named "000058.php" ?
Help me, I've gone link-mad! (But those are all good reads.)
i use PHP for my site.
its dynamic and stuff....
The page here has topics covered.
How to get to the site
How to navigate to the place they want - and get out as quick as possible
Bookmark their fav spot - to get in/out quick
Short URLS should be provided to redirect users to redirect to the intended result site. Such as advertising.
I agree with the general premise of the article, but unfortunately it was vary light on any useful tips or code.
/. is http://developers.slashdot.org/article.pl?sid=02/1 0/02/1946224&mode=flat&tid=95 -- why couldn't it just be http://developers.slashdot.org/thread/02-10-02/194 6224.html ? Or even http://slashdot.org/developers/02-10-02/User_Cente red_URL_Design.html ?
For instance, this thread in
I'd love to have some tips from various folk on how to use Perl and PHP with Apache in fancy ways to simplify and avoid these clunky URLs.
-- Herder Of Cats
I read a better article quite some time ago by Tim Berners Lee, entitled Cool URIs don't change, in which he discusses the designing urls properly ie. what to leave out of a url (things like .cgi, cgiexec, access details - members / non ...). The things he suggests are easily implementable in .htaccess for apache using mod_rewrite for php / cgi things.
This place makes those hideous 4- or 5-line URLs that you want to post into e-mails or whatever into much, much shorter URLs. It's nice, it's quick, it's easy, it's good.
Really nifty utility for dealing with sites that choose the long obfuscated URL approach...
Users bookmark things in unusual ways. Sometimes they will type in the URL, goto the page, then a couple of days later when they want to tell their coworker the only URL they have is two miles long.
= myproduct
Then what happens when your user bookmarks the result of the redirect and you want to change the server technology without your users noticing? ie say the original URL is:
http://myserver.xyz/myproduct
which redirects the user to:
http://myserver.xyz/stuff?things=blahblah&product
which the user bookmarks. Then you want to change your content management system. Do you support all the old links and all the redirects?
Forget about bookmarks, how about when google indexes your site? I think something like this happened to apple's support site a couple of months back. Suddenly all the hits to knowledge base articles started coming up with 404s.
I also only specify absolute URLs that don't include the server name (not sure of the correct terminology, but I mean "/foo/bar/" instead of "../bar/" or "http://server/foo/bar/").
What if you don't control the namespace below "http://server/foo/"? For instance, what if your URL is http://server/~username/ as it is on fortunecity, geocities, or your university's web space?
never use client-side redirects
Unless your hosting service doesn't support server-side redirects.
Client-side redirects are a sure sign of someone who can't grok .htaccess.
"Someone" not always being the person responsible for the content.
Will I retire or break 10K?