Remove .html / .php from the URL

Hello ,
i’ve almost finished my first project now and dedicate myself how to remove .html / .php from my URL.

I have pages index.php -> example.com/index.php
What i want is to display it as …/home

I also have .html files -> …/test.html
What i want is to display it as …/test

I hope you can understand what i am looking for and can help me to understand what i have to do.
Best regards,
Florian

I am now able to change forexample/index.php to …/index -> how i can let it display as …/home ?