I've built 2 sites on Wordpress. In both of them, I did two things:
- Created a slug for each page.
- In Settings > Permalink Settings, I chose "Custom Structure", and entered /%postname%.php
In one site, Wordpress gives me exactly what I want: the url of each page is the slug plus the .php extension.
In the other site, the url is just the slug and Wordpress suppresses the .php extension! If I explicitly type in the url with .php into my browser address line, it redirects to the page without the .php! Even when I'm editing the page in Wordpress, it shows near the top of the screen, just below the page title, the permalink without the php extension.
I can't understand why the first site works as desired and wordpress retains the .php extension, while in the second, wordpress discards the php extension!