Created
October 29, 2012 08:50
-
-
Save samuell/3972455 to your computer and use it in GitHub Desktop.
vhost and php config for clean URLs for mediawiki in a subfolder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^wiki/(.*)$ /subfolder/w/index.php?title=$1 [L,QSA] | |
RewriteRule ^$/subfolder/wiki/ [L,QSA] | |
<?php | |
$wgScriptPath = "/subfolder/w"; | |
$wgScriptExtension = ".php"; | |
$wgArticlePath = "/subfolder/wiki/$1"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment