Forum Moderators: phranque
My advice is to use mod_rewrite to handle it. You could rewrite any non-existing directory request to a script:
/something/ ==> /getuserpage.php?user=something
If you need more help in the specifics then post back here (including what kind of programming language you use, e.g. perl, php, ... and if you are using a database).