Parse js/css as a PHP file using htaccess

前端 未结 6 1847
面向向阳花
面向向阳花 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 08:06

    One possibility is that you're not configured to allow the use of an .htaccess file.

    You can check this in your httpd.conf.

    You want to ensure that AllowOverride is set to All

    eg

    from

    
      Options FollowSymLinks
      AllowOverride None
      Order deny,allow
      Deny from all
      Satisfy all
    
    

    to

    
      Options FollowSymLinks
      AllowOverride All
      Order deny,allow
      Deny from all
      Satisfy all
    
    

提交回复
热议问题