Need to remove .php from url

Hello Everyone,
I have a problem related to URL shown in the search bar, I am working for a website but when I click on the service page the URL show the link with (.Php) and same with all inner pages. I need to remove this without any damage or effect my website ranking, Kindly help me, I need some expert suggestion in this.
Thanks in Advance