Jump to content

手册:$wgScriptExtension

From mediawiki.org
This page is a translated version of the page Manual:$wgScriptExtension and the translation is 100% complete.
服务器URL及文件路徑: $wgScriptExtension
默认情况下用于附加到脚本名称的扩展。
引进版本:1.11.0
弃用版本:1.25.0​(Gerrit change 244199; git #7628a11d
移除版本:1.31.0​(Gerrit change 411484; git #de6dab71
允许的值:(字符串)
默认值:'.php'

细节

默认扩展名用于脚本名称后缀。 既可以是".php"也可以是".php5"。

一些托管服务提供商使用PHP 4处理*.php文件,而使用PHP 5处理*.php5文件。 提供此变量是为了支持这些提供者。

现在此设置已被删除,您可以设置从".php5"文件到".php"文件的URL重写,以继续支持".php5"入口点。