I would like to know how I can do that by entering a URL like the following
Read the URL and you can do something specific with the word profile , user-1 , and news , for example, show a news page based on the user.
But without the profile folder, nor user-1 , nor news .
In my opinion, it is as if the URL were read by PHP as a String, but not as directories or files. I have seen this methodology in Laravel, in the Route Class.
I'm sure there should be a "homemade" way to do it.