Lighter.js - FAQ and Examples

Fuel.php.js is treated like a PHP script

With certain Apache configurations, Fuel.php.js fails to load correctly. The reason is because of the way Apache handles files with multiple extensions. You can read the exact details at Apache’s mod_mime page. The workaround is to ensure only files that end in .php get executed by PHP. Instead of using this php handler:

AddHandler php5-script .php

Use this style instead:

<FilesMatch \.php$>
    SetHandler php5-script
</FilesMatch>