Parse js/css as a PHP file using htaccess

前端 未结 6 1844
面向向阳花
面向向阳花 2020-12-10 07:36

Hi I have been trying so hard to do the following on htaccess but it does not seem to work.

can someone out there help me?

AddType application/x-httpd-

6条回答
  •  粉色の甜心
    2020-12-10 07:51

    If you're trying to make PHP work in Javascript files you can simply rename the Javascript to javascript_file.js.php and have PHP work inside of that.

    You will have no problem including that into your page.

    `

提交回复
热议问题