[Mediawiki-l] Problems with MediaWiki on a subdomain

Brion Vibber brion at pobox.com
Thu Oct 28 19:40:37 UTC 2004


On Oct 28, 2004, at 5:08 AM, Ivan Savcic wrote:
> I installed it on http://filozofija.imped.net (which is also reachable 
> via http://www.filozofija.imped.net) and when enter that URL, the 
> Wiki's index.php automatically redirects me to 
> http://www.imped.net/index.php/Glavna_strana, a "nonexistent" page 
> (there's no wiki there; Glavna_strana is Serbian translation of 
> English Main_Page).

Your web server is reporting a different hostname than you're using 
externally. When the wiki uses an HTTP redirect to send you to a 
canonical page URL it must according to the spec use a full URL, so 
it's using the hostname that the server claims to be.

Override it in LocalSettings.php:
$wgServer = "http://www.filozofija.imped.net";

-- brion vibber (brion @ pobox.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20041028/492964bd/attachment.pgp 


More information about the MediaWiki-l mailing list