I tried a lot of code to remove .php from url
for example - ht.abuena.net/presto.php -> ht.abuena.net/presto
and vice versa - internally
RewriteEngine ON
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
nothing works - the url stays unchanged
page is reloading by right clicking on the button Reload and choosing - Empty Cache and Hard Reload - so I hope the cache is cleared
live example here - here
https://example.com/stuffinternally served by/stuff.php(without the client even seeing any.phpat all). I think you have it the wrong way round - just don't send people to/presto.phpat all, link them to/prestoinstead...prestoalso ?.htaccessachieves that you showed above... Maybe I am misunderstanding the point here. I was thinking you want nice URLs without.php, so what you'd do is use the.htaccesssetup that you posted above so that/abcwill internally reach/abc.php. Anything else didn't make much sense to me. If that's not the case, can you explain better what you want to achieve here then, and why?