127.spiritwiki.de
Daniel Friesen
You have misconfigured your MediaWiki installation and made the API non-functional. http://www.spiritwiki.de/api.php?action=rsd
Manfred Buchholz
Daniel Friesen: The values were made by the mediawiki installation.
Your link goes to the old 1.19.24 : spiritwiki.de
I am working on 127.spiritwiki.de which runs on mw1.27.4 (i want to update) --- the above link with 1.27.spir... gives me the download of a api-result.xml
and the htaccess-localsettings-entries lead to a system error....
Manfred Buchholz
Manfred Buchholz: Except from that the link with : ...de/api.php... can only function with clean urls.
The api.php is in the root-directory with localsettings etc.
But RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L] ...???
I need RewriteRule ^(.*)$ /index.php?title=$1 [L,QSA]
Daniel Friesen
Manfred Buchholz: No you do not need ?title=$1, MediaWiki parses the url itself if you include the title then you just override the url handling with broken title parsing. The RewriteCond lines are responsible for keeping your api and other things working when you use the root. You can try removing the %{DOCUMENT_ROOT} to see if it is causing problems on your server.
Manfred Buchholz
Daniel Friesen: It just does not function . On my old spiritwiki.de with mw 1.19.24 i use since 2012 :
$wgScriptPath = "";
$wgScriptExtension = ".php";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
$wgArticlePath = "$wgScriptPath/$1";
---- without $wgUsePathInfo = true;
-----------------------
#RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(skins|stylesheets|images|config)/
RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php
RewriteRule ^(.*)$ /index.php?title=$1 [L,QSA]
-- but it does not function on mw.127.4 (-->>new installation 2018.spiritwiki.de) - it looses the style
Daniel Friesen
Manfred Buchholz: That's why I'm telling you not to do rewrites like those. You should not be using !^/ style RewriteConds or ?title=$1 that's what is breaking your styles, try using the rewrite rules generated whole just reformat them so they have a similar / path start instead of the %{DOCUMENT_ROOT}
Manfred Buchholz
Daniel Friesen: My provider strato uses solaris5 and has until now not been able to offer an automatic installation of mediawiki higher than 1.23.....
I have postet the problems at https://www.mediawiki.org/wiki/Topic:Tvl9fsap0q0j1v9e
I have made an installation at another provider with debian 7 and php5.6 - and everythings functions at once. So i will have to buy me a rosary...
Manfred Buchholz
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L]
/LocalSettings.php
This configuration is meant to go into your LocalSettings.php. There should be a small block already in there that is similar to this, replace that with these settings to setup the MediaWiki side of the Short URL config.
## 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:
$wgScriptPath = "";
$wgScriptExtension = ".php";
$wgArticlePath = "/$1";
$wgUsePathInfo = true;
(127.spiritwiki.de - mw1.27.4 php 7)