On Sun, 4 May 2025, Brian Wolff wrote:
> If i were to guess, probably something wrong with apache config (e.g. for
> some reason the rewrite rule is ignored on POST). Check your apache error
> log.
Yes, it was some Rewrite snafu after all. Installed a fresh Mediawiki on
the same machine with a different path, and as soon as I enabled the
ShortURL hacks the same thing happened.
So, I re-read the documentation for Apache[0] again and now have:
Alias /wiki /var/www/mediawiki/index.php
RewriteRule ^/*$ %{DOCUMENT_ROOT}/mediawiki/index.php [L]
And, in LocalSettings.php:
$wgScriptPath = "/mediawiki";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
For some reason I never had that "Alias" directive in my Apache
configuration before, I don't know how this even worked before. But with
all that uploads are working again. \o/
Thanks for responding!
Christian.
[0] https://www.mediawiki.org/wiki/Manual:Short_URL/Apache
--
BOFH excuse #229:
wrong polarity of neutron flow
_______________________________________________
MediaWiki-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/