I'd like to use short URL's in my site. I've seen a lot of these online, programs that sort of amalgamate the parts of the long URL e.g. www.mysite.com/interests.php?user_id=12&access=2
What I'd really like, is if I could specify what the short URL should be e.g. myinterests, and that when someone typed in www.mysite.com/myinterests/
it would display the longer URL page (but not redirect them just display it). Is there a way where I can store the short url I'd like to relate to the 'long url' in a database, and when a page in the site is accessed it works out which page to actually display?
I don't know how to go about doing this, but I think it would be really helpful for Yahoo search results, and it looks MUCH nicer for users.
Any ideas? Any tutorials are good too. I've looked through quite a few, but none of them are dynamic i.e. they use htaccess files (which I'm guessing you can't update dynamically using php) to redirect the user to the right page. I'd like something that's completely dynamic.