Manual:$wgUsePathInfo

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgUsePathInfo and the translation is 38% complete.

Other languages:
العربية • ‎Deutsch • ‎English • ‎español • ‎فارسی • ‎français • ‎日本語 • ‎Nederlands • ‎polski • ‎português do Brasil
Paths: $wgUsePathInfo
Whether to use 'pretty' URLs.
導入されたバージョン: 1.2.1
除去されたバージョン: 使用中
可能な値: (真偽値)
既定値: (dynamically created)
他の設定: アルファベット順 | 機能順

詳細[edit]

Whether to use 'pretty' URLs (or Short URL), e.g. index.php/Page_title

These often break when PHP is set up in CGI mode. PATH_INFO may be correct if cgi.fix_pathinfo is set, but then again it may not; lighttpd converts incoming path data to lowercase on systems with case-insensitive filesystems, and there have been reports of problems on Apache as well. To be safe we'll continue to keep it off by default in these instances.

Override this to false if $_SERVER['PATH_INFO'] contains unexpectedly incorrect garbage, or to true if it is really correct.

警告 警告: The default $wgArticlePathManual:$wgArticlePath will be set based on this value at runtime, but if you have customized it, having this incorrectly set to true can cause redirect loops when "pretty URLs" are used.

既定値[edit]

$wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
	( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
	( strpos( PHP_SAPI, 'isapi' ) === false );


関連項目[edit]