Manual:$wgUsePathInfo/ko
Appearance
| 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.
기본값
| 미디어위키 버전: | ≥ 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 );