Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望 MAMP PRO 将 .asp 文件作为 .php 执行。我那里没有任何 htacess,但我编辑了 http.conf 文件。
我已经在 httpd.conf 上添加了一行,就像这样,AddType application/x-httpd-php .asp .aspx但它仍然显示 PHP 源代码。
AddType application/x-httpd-php .asp .aspx
它也不会执行它们,有什么想法吗?
我认为你漏掉了一条线......
AddType application/x-httpd-php .asp .aspx AddHandler application/x-httpd-php .asp .aspx
记得重启 MAMP。