When you go to a website like linkedin, you can make your own linkedin.com/UserName folder.
How can when a user types website.com/UserName it go to website.com/profile.php?UserName with mod rewrite in .htaccess?
When you go to a website like linkedin, you can make your own linkedin.com/UserName folder.
How can when a user types website.com/UserName it go to website.com/profile.php?UserName with mod rewrite in .htaccess?
For smaller projects you can rely on this type of folder structure but in larger project you've to choose more elegant solution rather than creating thousands of messy folders.
There are already many routing solution available to choose from. You may have a look on https://github.com/dannyvankooten/PHP-Router this PHP Router class.