Page 1 of 1

automatic shorter URL for users

Posted: Fri Aug 05, 2005 7:38 pm
by driesdk
Hi!
I'm building a portal site where users have their own profiles.
at this moment their profiles are for example: http://www.mydomain.com/profile.php?ID=nickname
But, it want my users to get to their profile by entering http://www.mydomain.com/nickname in there browser.
Has anyone of you guys got any idea how I hove got to manage this?

Greet, Dries

Posted: Fri Aug 05, 2005 7:44 pm
by s.dot
google mod_rewrite

Posted: Fri Aug 05, 2005 7:55 pm
by driesdk
Tnx, I will try to find out how to do this.
Maybe someone else can explain me, if this can be done by a script. because I don't think my host wil grant me full apache acces.
Anyway, I'm very new to this kind of scripting, but thanks alot allready to tell me this could be done by mod_rewrite

Greetz

Posted: Fri Aug 05, 2005 8:33 pm
by feyd
you don't need full apache access.. just the ability to write .htaccess files. mod_rewrite can be told to run the matches through a script..

Posted: Fri Aug 05, 2005 10:21 pm
by anjanesh
For basic url rewrites : mod_rewrite RewriteRule Generator is a good place to cross-check.

Posted: Fri Aug 05, 2005 11:31 pm
by nielsene
You can alo do this with ForceType