Page 1 of 1

Generating user profile pages

Posted: Sun Oct 12, 2008 7:13 pm
by Mutton
Hi everyone,

I have a website that has authenticated users. I would like each user to have their own profile page, however I do NOT want the address of each profile to be like this: http://www.website.com/profile.php?user=mutton

My goal would be to have each user's profile address like so: http://www.website.com/mutton

Is there an elegant way to do this? Or at least an elegant way to redirect the nice looking address to the ugly looking one? :D

Any help would be much appreciated! Thanks,
Andrew

Re: Generating user profile pages

Posted: Mon Oct 13, 2008 1:29 am
by PietM
You should look into mod-rewrite in Apache.

Re: Generating user profile pages

Posted: Mon Oct 13, 2008 8:49 am
by Mutton
Aha! That totally answers my question. Thank you so much!

For anyone else interested, I found a decent article on URL rewriting using Apache's mod_rewrite:
http://www.yourhtmlsource.com/sitemanag ... iting.html