User:Gryllida/TLDR of Manual:Short URL
On DEBIAN
- Make sure the wiki is in /var/www/html/w
- add AllowOverride All to /etc/apache2/apache2.conf
- add this to /etc/apache2/sites-available/000-default.conf
RewriteEngine On # Short URL for wiki pages RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] #RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}:2018/wiki/index.php [L]
- restart apache
- add $wgArticlePath = "/wiki/$1"; to LocalSettings.php