lantifa: Attempt to configure short URLs (to fix VisualEditor)
Signed-off-by: hexchen <hexchen@lilwit.ch>
This commit is contained in:
parent
4964ac6817
commit
57334cd690
1 changed files with 10 additions and 0 deletions
|
@ -26,6 +26,11 @@ in {
|
||||||
sha256 = "0d4f2ygglz4w515a7lgw59500q3xmr92xxhsmh8p204yaa769x8v";
|
sha256 = "0d4f2ygglz4w515a7lgw59500q3xmr92xxhsmh8p204yaa769x8v";
|
||||||
};
|
};
|
||||||
in ''
|
in ''
|
||||||
|
// Configure short URLs
|
||||||
|
$wgScriptPath = "";
|
||||||
|
$wgArticlePath = "/wiki/$1";
|
||||||
|
$wgUsePathInfo = true;
|
||||||
|
|
||||||
require_once('${wikidb}/WikiDB.php');
|
require_once('${wikidb}/WikiDB.php');
|
||||||
$wgExtraNamespaces = array( 100 => "Table", 101 => "Table_Talk",);
|
$wgExtraNamespaces = array( 100 => "Table", 101 => "Table_Talk",);
|
||||||
$wgWikiDBNamespaces = 100;
|
$wgWikiDBNamespaces = 100;
|
||||||
|
@ -59,6 +64,11 @@ in {
|
||||||
hostName = "wiki.lantifa.org";
|
hostName = "wiki.lantifa.org";
|
||||||
listen = [ { port = 80; } ];
|
listen = [ { port = 80; } ];
|
||||||
adminAddr = "admin@hacc.space";
|
adminAddr = "admin@hacc.space";
|
||||||
|
extraConfig = ''
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
|
||||||
|
RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue