I have a file called www.example.com/profile.php
that collects data for each profile in the database. So ex. 1 profile would have the url www.example.com/profile.php?ID=1
.
I want to change so the URL goes from www.example.com/profile.php?ID=1
to www.example.com/john-doe
which is profile 1s first and lastname.
The first and last name are in separate database fields.
Anyone that could help me make this possible? I guess it would be changed in the .htaccess file but I have never worked with .htaccess before so I'm total noob at that.