This tutorial provides a technique for disguising all file extensions and serving them as
To serve all files as PHP, add the following .htaccess snippet to your site’s root .htaccess file:
# serve all files as .php
Once in place, all file types —
custom.js, et al — will be served as PHP files.