0

我希望 MAMP PRO 将 .asp 文件作为 .php 执行。我那里没有任何 htacess,但我编辑了 http.conf 文件。

我已经在 httpd.conf 上添加了一行,就像这样,AddType application/x-httpd-php .asp .aspx但它仍然显示 PHP 源代码。

它也不会执行它们,有什么想法吗?

4

1 回答 1

0

我认为你漏掉了一条线......

AddType application/x-httpd-php .asp .aspx
AddHandler application/x-httpd-php .asp .aspx

记得重启 MAMP。

于 2014-08-25T13:44:07.077 回答