Log in

View Full Version : userid/username maping


mindcry
12-04-2005, 01:33 AM
Is there anyway to have the userids mapped to the usernames maybe have something like domain.com/username to show the a users profile. Even if it was a subfolder like domain.com/user/username something along those lines. I tried searching but I havent seen it on the site.

ConqSoft
12-04-2005, 01:45 AM
Something like this?

http://www.fireblades.org/forums/members/conqsoft.html

;)

SuperFly
12-04-2005, 02:20 AM
how did you do that?

Adrian Schneider
12-04-2005, 02:33 AM
mod_rewrite
http://wwww.site.com/forums/members/$1 to http://www.site.com/forums/member.php?username=$1

(pseudo code)

SuperFly
12-04-2005, 02:53 AM
Sorry but i do not understand

ConqSoft
12-04-2005, 02:54 AM
I use a commercial product that does it, plus a lot of other things. You should be able to do it with a .htaccess with code similar to the above.

SuperFly
12-04-2005, 02:58 AM
any idea? i entered it and it gave me a server cant post error

Marco van Herwaarden
12-04-2005, 06:50 AM
Search for mod_rewrite and you will probably find a few posts about this.

mindcry
12-04-2005, 01:26 PM
yeah thanks guys I did this last night. mod_rewrite pointed me in the right searching direction. I added this to my .htaccess RewriteRule ^members/(.*)$ member.php?username=$1 and it works great. In the MEMBERINFO template I had to add a / before everything so that it would point back to the root