I have a site with a page called users.php that accepts the URL variable “username” and returns user information based on that variable. For example, the URL users.php?username=someuser will retrieve data for the user “someuser”.
I am curious how to make an individual URl for each user, so that mysite.com/someuser redirects to users.php?username=someuser.
Can someone explain how to do this to me?
Thanks for the help!
You have to edit the .htaccess file.
Take a look here
For Example:
It will convert URLs like
to