伪静态

From Yefu's notes
Jump to: navigation, search

针对Apache的文档在这里. 针对lighttpd的mediawiki伪静态化,要在lighttpd.conf里:

url.rewrite-once = ( "^/w/(.+)\.html$" => "/index.php?title=$1")

然后修改LocalSettings.php 中 $wgArticlePath 的值

$wgArticlePath = "$wgScriptPath/show/$1";