Difference between revisions of "MediaWiki"
From Briki
(→Short URLs) |
|||
Line 3: | Line 3: | ||
== Short URLs == | == Short URLs == | ||
− | + | * Edit /etc/apache2/conf.d/mediawiki1.10.conf and add: | |
+ | <pre> | ||
+ | RewriteEngine On | ||
+ | RewriteBase /wiki | ||
+ | RewriteCond %{REQUEST_FILENAME} !-f | ||
+ | RewriteCond %{REQUEST_FILENAME} !-d | ||
+ | RewriteRule ^(.*)$ index.php?title=$1 [PT,L,QSA] | ||
+ | </pre> | ||
+ | to the ''<Directory /var/lib/mediawiki1.10/>'' section. | ||
+ | |||
+ | * Edit /etc/mediawiki1.10/mediawiki.conf and add: | ||
+ | <pre> | ||
+ | $wgArticlePath = "/wiki/$1"; | ||
+ | </pre> | ||
== Setting site homepage == | == Setting site homepage == |
Revision as of 14:16, 16 November 2007
Editing Sidebar
Simply load MediaWiki:Sidebar and edit it (must be admin user). For formatting help, see http://meta.wikimedia.org/wiki/Help:Navigation_bar.
Short URLs
- Edit /etc/apache2/conf.d/mediawiki1.10.conf and add:
RewriteEngine On RewriteBase /wiki RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?title=$1 [PT,L,QSA]
to the <Directory /var/lib/mediawiki1.10/> section.
- Edit /etc/mediawiki1.10/mediawiki.conf and add:
$wgArticlePath = "/wiki/$1";
Setting site homepage
Edit /etc/apache2/sites-available/default and add:
RedirectMatch permanent ^/$ /wiki/Main_Page