hello,

i was woundering if somone could point me in the right direction.
Im making a CMS/socialnetworking script for fun and want to change how the url gets the data for profiles.

at the moment its using the tradition $_GET thing from the broswer url, but id like to try and get it to do www.mysite.com/123
(123 being the userid/username) similar to facebook and myspace.

however i have no idea what this parameter passing is called. Or even if it is parameter passing?

any ideas?

thanks it advance =)

Recommended Answers

All 2 Replies

URL Rewriting is what you want.

Your PHP script can stay the same, it can still get passed the Query String, all rewriting does is change how the user sees the URL in this case.

A Google of URL Rewrite will give you a multitude of guides :)

look for .htaccess on apache

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.