Jump to content

Manual:$wgUsePathInfo/ko

From mediawiki.org
This page is a translated version of the page Manual:$wgUsePathInfo and the translation is 27% complete.
Server URLs and file paths: $wgUsePathInfo
Whether to use 'pretty' URLs.
이 변수가 소개된 버전:1.2.1
이 변수가 사라진 버전:계속해서 쓰이고 있음
허용값:(boolean) or null
기본값:null
(Note: The default value of this variable depends on other variables, such as the values set in Setup.php , after LocalSettings.php is executed.)

상세

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

The effective default value is determined at runtime: it will be enabled in environments where it is expected to be safe.

Override this to false if $_SERVER['PATH_INFO'] contains unexpectedly incorrect garbage, or to true if it is really correct. It's highly recommended to set its value in LocalSettings.php to prevent inconsistencies between web requests and scripts run from the command line, where the value may change between them.

경고 경고: The default $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.

기본값

미디어위키 버전:
1.38.2
Gerrit change 802960
$wgUsePathInfo = null;
미디어위키 버전:
1.2.1 – 1.37
$wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
	( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
	( strpos( PHP_SAPI, 'isapi' ) === false );

같이 보기