View Full Version : Get folder name from URL

06-14-2006, 09:40 PM
I'm working on a website - and it is going to have member profiles. I was wanting to set up url addresses for the users like:


But for the script to work I need to pull the username from after the slash and tell the script to use it to retrieve the profile.

I'm sure it's a pretty simple thing - but could someone help me out?!

Thanks in advance!!


06-15-2006, 03:13 AM
if you are using apache then you should look at mod_rewrite (http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html)

06-15-2006, 04:04 AM
Hey thanks! I actually already figured that out after much searching - and it was just what I needed!