# ArticlePath one is especially useful if you want to use
# mod_redirect to make page-viewing URLs look static.
#
-$wgArticlePath = "{$wgScript}?title=$1";
+$wgArticlePath = "{$wgScript}/$1";
# $wgArticlePath = "/wiki/$1"; # Prettier if you're setup for it
## Normally you don't need to change these once the above are set...
\$wgScript = \"\$wgScriptPath/index.php\";
\$wgRedirectScript = \"\$wgScriptPath/redirect.php\";
-\$wgArticlePath = \"\$wgScript?title=\$1\";
-# \$wgArticlePath = \"\$wgScript/\$1\"; # Prettier if you're setup for it
+\$wgArticlePath = \"\$wgScript/\$1\";
\$wgStyleSheetPath = \"\$wgScriptPath/stylesheets\";
\$wgStyleSheetDirectory = \"\$IP/stylesheets\";
#global $returnto, $diff, $oldid, $curid;
$action = $_REQUEST['action'];
-$title = $_REQUEST['title'];
+if( isset( $_SERVER['PATH_INFO'] ) ) {
+ $title = substr( $_SERVER['PATH_INFO'], 1 );
+} else {
+ $title = $_REQUEST['title'];
+}
# Placeholders in case of DB error
$wgTitle = Title::newFromText( wfMsg( "badtitle" ) );