Converting user id to username

Programming
Tutor: None Selected Time limit: 10 Days

Hello

I have a register system and when the user registers, the user gets a link to their profile so they get this http://site.com/view_account.php?id=48

I want to change it like this: http://site.com/username 

Like how YouTube have theirs, http://youtube.com/smosh

Does any one know how to do it?

If anyone does, just ask what part of code you require, I don't know which code to send

Thanks.

Sep 25th, 2013
Hi,

Try this generator.. you will have to experiment with this. http://www.generateit.net/mod-rewrite/. If you want to do it by $_SERVER['REQUEST_URI'] method, you will to be offer a higher payment arrangement. I can write a simple script for this, similar to MVC framework router.
Sep 26th, 2013

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Sep 25th, 2013
...
Sep 25th, 2013
Mar 24th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer