View Single Post
Old 10-01-2008, 05:13 PM   #2 (permalink)
jcorradino
The Contributor
 
jcorradino's Avatar
 
Join Date: Sep 2008
Posts: 36
Thanks: 2
jcorradino is on a distinguished road
Default

well, you can do it a clean way or a messy way

The messy way:

just use GET to call user.php?user=username

the clean way, do the above step, and mess with the .htaccess using RewriteRule to make it get rid of the "user.php?username=". you can do this by creating a .htaccess file and throwing this in there:

RewriteEngine on
Options +FollowSymLinks
RewriteRule user/(.*)/ user.php?username=$1

if you would like to see this working, take a look at my test page I put up to make sure the rewrite rule worked correctly. You can edit the name by changing the address bar.

Hope this helps
__________________
Jason Corradino
Applications Developer, Interactive Support - Tribune Technology
J2EE Development, Script Tinkering - Develop, Support, and Maintain Tribune websites.

Last edited by jcorradino : 10-01-2008 at 06:44 PM.
jcorradino is offline  
Reply With Quote
The Following User Says Thank You to jcorradino For This Useful Post:
sarmenhb (10-03-2008)