I know this has been covered extensively, but I can't seem to find an answer to what I want to do. I've read all the stack articles and looked at different methods that google shows with the infinite number of search strings I've tried.
I've seen articles talking about making the PHP readable URL go to pretty but nothing (I can understand) on making the pretty go to PHP readable.
I've seen articles talking about making an htaccess entry for each "user" (in the case below), but no few-line solution that formats the way I need (again, in the case below).
Can someone provide a template for:
1) Sending a pretty URL that looks like https://mysite.com/users/sampleUserName to https://mysite.com/users.php?username=sampleUserName
2) Have users.php handle the pretty url if that's even necessary.
I'm not even totally sure what I'm asking (because I have no idea how this works hence the question), so if anyone can more precisely read my mind, it would be much appreciated. LOL
Bottom line: I want people to be able to type in a pretty URL and have PHP be able to handle it.
Many thanks in advance!