我在 .htaccess 文件上编写了以下代码,但每当我加载 php 文件时,它都会显示此消息的原因。
Options +MultiViews
DefaultType application/x-httpd-php
Options -Indexes
ErrorDocument 403 /403
ErrorDocument 404 /404
最佳答案
DefaultType
不仅被弃用,而且在 Apache 2.3+ 中被禁用。如stated in the docs :
This directive has no effect other than to emit warnings if the value is not
none
.
关于.htaccess - 为什么会忽略已弃用的 DefaultType?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45794801/