I've seen that WordPress has a feature where you can change the permalink of your pages to different formats e.g. www.example.com/index.html to www.example.com/index.
How do you do that in localhost or in general any host without using WordPress for example if I have the page www.example.com/about.php I want it to be search in a browsers address bar as www.example.com/about
Is there a way to do this?