별로 추천하지 않는 방법이라곤 했지만.. 깔끔하게 하고 싶어서 이렇게 했었다.
/w/ 으로 변경하긴 했지만...
RewriteEngine On
# Verifying if user forgot to put trailling slash. If so, we'll rewrite to Main_Page
RewriteCond %{REQUEST_URI} ^/wiki$
RewriteRule ^(.*) /wiki/index.php?title=대문 [L]
#RewriteRule ^(.*) /대문 [L]
# Don't rewrite requests for files in MediaWiki subdirectories,
# MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt
RewriteCond %{REQUEST_URI} !^/wiki/stylesheets/
RewriteCond %{REQUEST_URI} !^/wiki/resources/
RewriteCond %{REQUEST_URI} !^/wiki/extensions/
RewriteCond %{REQUEST_URI} !^/wiki/(redirect|texvc|index|load|api).php
RewriteCond %{REQUEST_URI} !^/wiki/error/(40(1|3|4)|500).html
RewriteCond %{REQUEST_URI} !^/wiki/favicon.ico
RewriteCond %{REQUEST_URI} !^/wiki/robots.txt
# Make sure there is no query string (Unless user is making a search)
RewriteCond %{QUERY_STRING} ^$ [OR] RewriteCond %{REQUEST_URI} ^/wiki/Special:Search
# Rewrite http://wiki.domain.tld/article properly, this is the main rule
RewriteRule ^(.*) /wiki/index.php/$1 [L]
#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
#RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/wiki/index.php [L]