MediaWiki/archive/v1.11: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
m Woozle moved page MediaWiki 1.11 to MediaWiki/archive/v1.11 without leaving a redirect: obsolete
No edit summary
 
Line 1: Line 1:
==Navigation==
<section begin=navbar />{{#lst:MediaWiki|navbar}}: [[MediaWiki 1.11|version 1.11]]<section end=navbar />
==Overview==
==Overview==
[[MediaWiki 1.11]] may require some configuration changes in order to work properly with "[[shortening MediaWiki URLs|nice URL]]" setups from earlier versions.
[[MediaWiki 1.11]] may require some configuration changes in order to work properly with "[[../modifying/URLs|nice URL]]" setups from earlier versions.
==Nice URL Config==
==Nice URL Config==
This may not work for everyone, and may not be necessary in all cases.
This may not work for everyone, and may not be necessary in all cases.

Latest revision as of 22:46, 14 December 2017

Overview

MediaWiki 1.11 may require some configuration changes in order to work properly with "nice URL" setups from earlier versions.

Nice URL Config

This may not work for everyone, and may not be necessary in all cases.

.htaccess

<IfModule mod_rewrite.c>
        RewriteEngine on 
        RewriteCond %{REQUEST_FILENAME} !-f 
        RewriteCond %{REQUEST_FILENAME} !-d 
        RewriteRule ^(.+)$ index.php/?title=$1 [PT,L,QSA] 
</IfModule>

LocalSettings.php

<php>$wgScriptPath = ""; $wgScriptExtension = ".php"; $wgScript = "$wgScriptPath/index.php"; $wgArticlePath = "/$1";

$actions = array('edit', 'watch', 'unwatch', 'delete','revert', 'rollback', 'protect',

 'unprotect','info','markpatrolled','validate','render','deletetrackback','print',
 'dublincore','creativecommons','credits','submit','viewsource','history','raw',
 'purge');

foreach ($actions as $a)

 $wgActionPaths[$a] = "$wgScriptPath/$1?action=$a";</php>

The for-loop and $actions array were suggested by Manual:$wgActionPaths; I've redirected all actions except "view".

An earlier installation of MW 1.11 worked just fine without the $actions code; I have no idea why. They are both running on the same server.