.htaccess - 为什么会忽略已弃用的 DefaultType?

标签 .htaccess server xampp

我在 .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/

相关文章:

.htaccess - htaccess 文件重定向非平行目录

php - 在 php xampp ubuntu 中找不到类 'MongoClient'

PHP 代码适用于共享主机,但不适用于 Xampp

apache - .htaccess 重定向/重写问题

wordpress - 重写到Wordpress基础之外的URL

regex - 如何编写htaccess将子域重定向到https

c# - C# 中的简单 Webrtc 中继桥服务器

java - 如何从 WebSphere Liberty 服务器访问管理控制台?

ios - 需要帮助将位置数据发送到 Xcode 中的服务器

php - 如何使用 PHP 打破 MySQL 查询的束缚?