Answer the question
In order to leave comments, you need to log in
How to set up mediawiki short addresses on local hosting?
Good afternoon everyone! There was a problem setting up the mediawiki engine on the local machine.
The mediawiki engine is installed on the remote hosting in the /w subfolder. Set up short URLs so that pages can be accessed via links like domain.com/wiki/Page_Name .
To do this, in the root directory there is an htaccess file with the following line:
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question