I want to make this Social Network-ish thing, and I want user profiles to be located at www.mywebsite.com/[profile-name], but the thing is that I don't know how to do this. I can't use Laravel or anything like that. Only PHP.
Here are some solutions I came up with, but I don't know if they are possible or how to actually make them into code:
Make PHP actually create all of the directories and copy a index.php into it. (idk how to make this)
Somehow, make PHP recognize what comes after the "/" and treat it as a variable, just like a GET variable (here is where the title of the question comes from, because this is actually what I had in mind doing), but I have no idea how to do that. Maybe making the 404 page actually look at the url, and then redirect you? Yeah idk... Maybe you can help me. I would prefer just answering this question rather then you thinking about a solution or answering the first solution, but anything is welcomed. Thanks!