How to parse a .js file as a php file?

mistwang

LiteSpeed Staff
#2
In .htaccess
AddType x-httpd-php .js


if need the special treatment for only one file, and there are other .js file in the same directory, you may have to use a rewrite rule to override the MIME type to "x-httpd-php".
 
Top