Changes

Jump to navigation Jump to search
→‎Short URLs (1/27/16): working instructions yay
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 VirtualHost block in the Apache configuration file, but not after that defines the comment about vim syntax wiki's DocumentRoot (I added them to /etc/apache2/apache2sites-availabe/000-default.conf):(You may also want to make a backup of the original configuration file in case you want to revert)
## http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
# Enable the rewrite engine
RewriteEngine On
$ sudo service apache2 restart
And Find the line in LocalSettings.php that sets the $wgScriptPath and add these two lines to LocalSettings.phpbelow that line:
## http://www$wgScriptExtension = ".mediawiki.org/wiki/Manual:Short_URL/Apachephp";
$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