Manual:$wgArticlePath
Appearance
| Server URLs and file paths: $wgArticlePath | |
|---|---|
| 문서를 새로 만드는 데 사용되는 기본 URL. |
|
| 이 변수가 소개된 버전: | 1.1.0 이전 |
| 이 변수가 사라진 버전: | 계속해서 쓰이고 있음 |
| 허용값: | (상대 URL 또는 절대 URL,‘$1’는 페이지명을 나타낸다. 상대 URL을 사용하려면, 앞 부분을 슬래시(/)로 하세요.) |
| 기본값: | {$wgScript}?title=$1또는 {$wgScript}/$1. $wgUsePathInfo의 값에 의존한다. (Note: The default value of this variable depends on other variables, such as the values set in Setup.php, after LocalSettings.php is executed.) |
| 기타 설정: 알파벳 순 | 기능별 순 | |
설명
미디어위키에서 내부 링크(인터위키, 인터링크)를 만드는데에 기반이 되는 URL입니다. 기본값은 상대 URL을 사용하여 주 index.php 스크립트를 가리키지만, 깔끔한 URL을 위해서 .htaccess를 사용한다면 적절히 변경할 수 있습니다.
예시
$wgArticlePath = '/wiki/$1';
같이 보기
- $wgScript
- $wgScriptPath
- $wgUsePathInfo
- $wgVariantArticlePath
- 매뉴얼:Short URL - 더 자세한 ULR 구성에 대하여...
- Extension:NamespacePaths - Allows custom article paths to be mapped to namespaces of the wiki