I've just deployed an internal wikipage for my company. As of now we have a couple of sections on the left navigation pane (we have more but only three are being used at the moment).
Section 1 Section 2 Section 3
Whenever I click on one of the sections I get the URL:
http://mediawiki.my.domain/mediawiki/index.php/Section 1
What we desire to do is to get URL: http://mediawiki.my.domain/mediawiki/Section 1
Please, don't instruct me to read: https://www.mediawiki.org/wiki/Manual:Short_URL, the guide might be clear for you guys but at least for me, it isn't. A real life scenario example would make things a LOT easier...but there aren't any available, not even outside their wikipage. I've also read similar threads here on stack overflow, but still, no luck.
According to what I've been reading, file LocalSettings.php should have at the end:
## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs please see: ## http://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = "/mediawiki"; $wgScriptExtension = ".php"; $wgArticlePath = "{$wgScriptPath}/wiki/$1"; $wgUsePathInfo = true
But there has to be an htaccess file also on the mediawiki web directory with something like this:
RewriteEngine On RewriteRule ^/?mediawiki/wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] RewriteRule ^/mediawiki*$ %{DOCUMENT_ROOT}/w/index.php [L]*
So if I create this file on the mediawiki directory, will this work? any other information I might be missing here?