메뉴 건너뛰기

정보자료게시판

미디어위키 짧은 주소

by 숨마 posted Oct 03, 2020
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

미디어위키 짧은 주소 적용하기

https://paik.wiki/w/미디어위키_짧은주소_적용

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

 

/wiki 부분도 필요없어 생략했다.

LocalSetting.php는 아래 부분 추가

$wgScriptPath = "";
$wgScriptExtension = ".php";
$wgArticlePath = "/$1";
$wgUsePathInfo = true;

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads  = true;
$wgGenerateThumbnailOnParse = false;

 

시놀로지에 설치했는데, 기본인 nginx는 뭔가 바꿔줘야 하는게 많아서,

Apache 2.2 로 변경


위로