How do I supposed to create a url based on the username of the user?
Can someone help me with the codes and the .htaccess configuration?
users.com/usernamehere
If you want to view it on Github
If you want to view it on a live website
Info
If my user wants to view his page, he's gonna go to "users.com/hisusername". The link is gonna get his username and displays information about his account, and the .htaccess gonna have the re-write rule (I guess?). Can someone help me with the code?
Suggestion
I've saw this in some tutorials but I can't follow them, so if the page have the tag of "?username=usernamehere
", the user is gonna be redirected on the "usernamehere
" page.
Example: The user is on "users.com/profile.php?username=Stackoverflow
" and the user is gonna be redirected to: "users.com/users/Stackoverflow
". Any chance of this gonna happen? Thanks and have a good day :)