Manual:$wgArticlePath

This page is a translated version of the page Manual:$wgArticlePath and the translation is 92% complete.
Server URLs and file paths: $wgArticlePath
문서를 새로 만드는 데 사용되는 기본 URL.
이 변수가 소개된 버전:before 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';

같이 보기