Sep 5, 2018 · 1 min read
Here’s the way I do it (I’ll just limit the problem to renaming PHP files). This solution is simpler (rewrite rules cannot be debugged other than by testing the overall functioning), and uses only Core directives for speed as compared with Rewrite rules:
# Serve no-extension files using PHP:
<FilesMatch “^[^.]+$”>
SetHandler application/x-httpd-php
</FilesMatch>
PS — This is tested.