My website is, in its most basic form, a network site for a specific type of individuals. When an individual registers, I would like to create a custom page (or at least the image/facade of one) displaying their profile. Currently, I am using PHP $_GET parameters to determine which profile to display when a user navigates to the respective script on the site.
Aiming for better SEO, I would like each user to have their own unique link; for example, FaceBook allows its users to have a custom URL which they can link. How can I automatically generate a page within a directory for each new user that registers, and have that page automatically update when the user updates his/her details? I understand that there may be a potential process with .htaccess, using the user's name/title/etc to pull their details from the database but displaying it as a unique URL.
Can anyone provide suggestions or examples of implementations of this? I appreciate any and all help!
P.S. I imagine that sorting the files based off of the user's location, i.e. by state, should not be that difficult once the aforementioned functionality has been sorted out. I would ideally like a directory structure such as this ../users/state/user_name, where state is the user's location, and user_name is their unique name. Thanks again!
.htaccessto redirect sending a parameter which can queried in your database. You can find info on how here. I would stay away from directory structure based on state - people move and moving directories seems not worth the effort. Stay with a flat directory structure for simplicity.