How about this scenario.
I already have a page that relies on a .htaccess rewrite. Each user has a 5 char code. On a page I check if id is 5 chars long, if it is script checks the table with user data and is finds it the data is echoed. So, couldn't I just add another field to that user's row, called ALIAS. Then I can first check if alias appended exists go on with the routine.
Basically I don't need to store user URL, because it is dynamic. I already have user data table. So, I need a to be able to check if such alias exists. I guess I'm failing to see how I could access db for a check if someone provides something likemysite.com/johndoe Right now my site will just kick me to "Page not Found default page".
Sounds easy but that whole rewrite aspect keeps throwing me off.