Hide extension name on actual web page

Hey!

How do I change the name of the page without changing the file type in file manager? Right now the names of my pages are like “www.sample.com/Contact.txt.html”, and I just want them to be sample.com/contact

Help me!

You should handled that in the .htaccess with the rewrite rules. Maybe this link can help you: URL Rewriting for Beginners |Alone On A Hill

thankyou so much