Changes

Jump to navigation Jump to search
$ sudo a2enmod rewrite
You can also check that mod_rewrite has been enabled by creating a phpinfo page and looking for mod_rewrite under the apache "Loaded Modules" section as described in [http://stackoverflow.com/a/10891317 this Stack Overflow answer].  As described on the Mediawiki manual page, add these lines to the end of the Apache configuration file, but not after the comment about vim syntax (I added them to /etc/apache2/apache2.conf):  ## http://www.mediawiki.org/wiki/Manual:Short_URL/Apache # Enable the rewrite engine RewriteEngine On # Short url for wiki pages RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/mediawiki/index.php [L] # Redirect / to Main Page RewriteRule ^/*$ %{DOCUMENT_ROOT}/mediawiki/index.php [L] Then restart Apache:  $ sudo service apache2 restart And add these lines to LocalSettings.php:  ## http://www.mediawiki.org/wiki/Manual:Short_URL/Apache $wgArticlePath = "/wiki/$1";
== To-do list ==
* "infobox" templates (like the ones that Wikipedia has for countries, notable people, etc.) e.g. [https://en.wikipedia.org/w/index.php?title=Jeb_Bush&action=edit the source of the Wikipedia page for Jeb Bush] has a good example
Anonymous user

Navigation menu