hi,
we switched from the source package to Debians one. We had a structure like:
http://www.foo.org/index.php/page
Debians version has:
http://www.foo.org/mediawiki/index.php/page
so, my problem is now, that nearly every "hard" link is now broken. I want to fix these links with mod_rewrite, but i'm not sure how. I know the page http://www.mediawiki.org/wiki/Manual:Short_URL but i don't get it. We have also installed mailman and some more in the same way, so that i can't redirect easy all to the mediwiki/ folder.
So, what i want, is that every "hard URL" works, like before. One way were to suppress the mediawiki/ folder or, redirect from the URL without mediawiki/, to the correct page, _with_ mediawiki/
any suggestions?
cu denny
Denny Schierz wrote:
hi,
we switched from the source package to Debians one. We had a structure like:
http://www.foo.org/index.php/page
Debians version has:
http://www.foo.org/mediawiki/index.php/page
so, my problem is now, that nearly every "hard" link is now broken. I want to fix these links with mod_rewrite, but i'm not sure how. I know the page http://www.mediawiki.org/wiki/Manual:Short_URL but i don't get it. We have also installed mailman and some more in the same way, so that i can't redirect easy all to the mediwiki/ folder.
So, what i want, is that every "hard URL" works, like before. One way were to suppress the mediawiki/ folder or, redirect from the URL without mediawiki/, to the correct page, _with_ mediawiki/
any suggestions?
cu denny
What about telling apache that the root folder is the mediawiki/ one?
Remember to change $wgArticlePath and $wgScriptPath at LocalSettings.php, so MediaWiki expects to be called as /index.php/page
However, I do recommend against using debian packages for mediawiki. Mediawiki is php, so there aren't binary versions, the debian package usually: *Are outdated. *Break the normal configuration in odd ways. *Which in turn, makes harder to help you.
And MediaWiki does a very good job installing directly. :)
hi,
Am Montag, den 17.11.2008, 16:23 +0100 schrieb Platonides:
What about telling apache that the root folder is the mediawiki/ one?
/mediawiki is an alias in the virtual hostconfig to /usr/share/mediawiki
However, I do recommend against using debian packages for mediawiki. Mediawiki is php, so there aren't binary versions, the debian package usually:
no chance. My LUG choosen the Debian package, and i have to accept it.
And MediaWiki does a very good job installing directly. :)
i now ... but ...
the best one should be a rewrite rule, so that both URLs works.
cu denny
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Denny Schierz wrote:
hi,
Am Montag, den 17.11.2008, 16:23 +0100 schrieb Platonides:
What about telling apache that the root folder is the mediawiki/ one?
/mediawiki is an alias in the virtual hostconfig to /usr/share/mediawiki
It'd be pretty easy to change your virtual host config, then...
However, I do recommend against using debian packages for mediawiki. Mediawiki is php, so there aren't binary versions, the debian package usually:
no chance. My LUG choosen the Debian package, and i have to accept it.
Hope you don't mind waiting 3 years for the next upgrade! ;)
- -- brion
mediawiki-l@lists.wikimedia.org