User:Gryllida/TLDR of Manual:Short URL

From MediaWiki.org
Jump to navigation Jump to search

On DEBIAN

  1. Make sure the wiki is in /var/www/html/w
  2. add AllowOverride All to /etc/apache2/apache2.conf
  3. 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]
  1. restart apache
  2. add $wgArticlePath = "/wiki/$1"; to LocalSettings.php