【问题标题】:MIME types in .htaccess with or without leading dot.htaccess 中的 MIME 类型,带或不带前导点
【发布时间】:2013-08-31 09:36:49
【问题描述】:

我在 Firefox 中播放 mp4 时遇到了一些问题(这并不奇怪)。大多数时候,建议在我的 .htaccess 文件中添加一些 MIME 类型。比如:

AddType video/mp4 mp4 m4v
AddType audio/mp4 m4a
AddType video/ogg ogv
AddType audio/ogg ogg oga
AddType video/webm webm

有些人提出了相同的建议,但带有一个前导点:

AddType video/mp4 .mp4 .m4v
AddType audio/mp4 .m4a
AddType video/ogg .ogv
AddType audio/ogg .ogg .oga
AddType video/webm .webm

这两个sn-ps有什么区别?

【问题讨论】:

    标签: .htaccess mime-types


    【解决方案1】:

    扩展参数不区分大小写,可以指定带或不带前导点。

    所以简而言之没有区别,它们都会达到相同的结果。 Read more about AddType here.

    【讨论】:

      猜你喜欢
      • 2012-06-05
      • 2010-11-22
      • 2010-10-07
      • 1970-01-01
      • 1970-01-01
      • 2014-02-05
      • 2018-05-20
      • 2013-04-03
      • 1970-01-01
      相关资源
      最近更新 更多