automatic shorter URL for users

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
driesdk
Forum Newbie
Posts: 6
Joined: Fri Aug 05, 2005 7:33 pm

automatic shorter URL for users

Post 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
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

google mod_rewrite
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
driesdk
Forum Newbie
Posts: 6
Joined: Fri Aug 05, 2005 7:33 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

For basic url rewrites : mod_rewrite RewriteRule Generator is a good place to cross-check.
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

You can alo do this with ForceType
Post Reply