MediaWiki setup notes

From Joomla! Documentation

Revision as of 14:20, 9 January 2008 by Chris Davenport (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

These are some notes about setting up a MediaWiki for use by the Documentation Working Group.

mod_rewrite rules for this wiki

Invaluable information here. To begin with we have these rewrite rules in place:

RewriteEngine On
RewriteRule ^[^:]*\. - [L]
RewriteRule ^[^:]*\/ - [L]
RewriteRule ^/*$ /wiki/index.php?title=Main_Page [L,QSA]
RewriteRule ^(.+)$ /wiki/index.php?title=$1 [L,QSA]

However, because we have some pages which have dots in their titles (and hence their URLs), we had to apply the following rewrite rules:

RewriteEngine on

RewriteCond         %{REQUEST_URI} !index.php
RewriteCond         %{REQUEST_FILENAME}  -f [OR]
RewriteCond         %{REQUEST_FILENAME}  -d [OR]
RewriteCond         %{REQUEST_FILENAME}  -l
RewriteRule  ^(.+)  /path/to/web/directory/$1  [L]

# redirect to main page
RewriteRule ^/*$ /index.php?title=Main_Page [L,QSA]

# anything else is to be treated as a title
RewriteCond         %{REQUEST_URI} !index.php
RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]